From 5270f301eba5237feebc8eca14aee6b7a992a819 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 6 Jul 2022 16:25:43 -0400 Subject: Made exception.report a function. --- licentia/source/program/licentia/input.lux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'licentia/source/program') diff --git a/licentia/source/program/licentia/input.lux b/licentia/source/program/licentia/input.lux index 437675acd..afc723656 100644 --- a/licentia/source/program/licentia/input.lux +++ b/licentia/source/program/licentia/input.lux @@ -40,11 +40,11 @@ (exception .public (cannot_use_fractional_amount [amount Frac]) (exception.report - "Amount" (%.frac amount))) + (list ["Amount" (%.frac amount)]))) (exception .public (cannot_use_negative_amount [amount Int]) (exception.report - "Amount" (%.int amount))) + (list ["Amount" (%.int amount)]))) (def amount (Parser Nat) @@ -60,8 +60,8 @@ (exception .public (invalid_period [period (Period Nat)]) (exception.report - "Start" (%.nat (the time.#start period)) - "End" (%.nat (the time.#end period)))) + (list ["Start" (%.nat (the time.#start period))] + ["End" (%.nat (the time.#end period))]))) (def period (Parser (Period Nat)) -- cgit v1.2.3