@hyperscale0/hsx 1.0.132 → 1.0.199

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,7 +186,7 @@ function literal(expr, expectedType) {
186
186
  if (expr.kind === "money") {
187
187
  const [raw, currency] = expr.value.split(" ");
188
188
  if (currency !== "SAR")
189
- fail(expr, `currency ${currency} differs from SAR`, "write this amount in SAR");
189
+ fail(expr, `currency ${currency} differs from the supported riyal currency`, "write this amount in SAR");
190
190
  const result = decimal(raw, 2, expr);
191
191
  if (result.length > 18)
192
192
  fail(expr, "amount exceeds 18 minor-unit digits", "write a smaller amount");
@@ -280,7 +280,7 @@ export function compile(source, options = {}) {
280
280
  if (program.header)
281
281
  fail(program, "compile a program, not a header", 'start with program product_name "Title"');
282
282
  if (program.currency !== "SAR")
283
- fail(program, "this release supports SAR", "write currency SAR or omit currency");
283
+ fail(program, "this release supports riyals", "write currency SAR or omit currency");
284
284
  const templates = new Map();
285
285
  const declarationSources = new Map();
286
286
  const standardOrigins = new Map();