diff options
author | Eduardo Julian | 2022-07-06 16:25:43 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-07-06 16:25:43 -0400 |
commit | 5270f301eba5237feebc8eca14aee6b7a992a819 (patch) | |
tree | a1adb545189f4db807d712a1fcc7d20048c11222 /lux-lua/source | |
parent | 0c32c7f03ad1f8f0db54b623dc407713bbf8cacd (diff) |
Made exception.report a function.
Diffstat (limited to 'lux-lua/source')
-rw-r--r-- | lux-lua/source/program.lux | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lux-lua/source/program.lux b/lux-lua/source/program.lux index cba1a224f..e08b2c4cb 100644 --- a/lux-lua/source/program.lux +++ b/lux-lua/source/program.lux @@ -169,8 +169,8 @@ (exception (unknown_kind_of_object [object java/lang/Object]) (exception.report - "Class" (ffi.of_string (java/lang/Object::toString (java/lang/Object::getClass object))) - "Object" (ffi.of_string (java/lang/Object::toString object)))) + (list ["Class" (ffi.of_string (java/lang/Object::toString (java/lang/Object::getClass object)))] + ["Object" (ffi.of_string (java/lang/Object::toString object))]))) (ffi.interface LuxValue (getValue [] java/lang/Object)) @@ -447,7 +447,7 @@ (exception (cannot_apply_a_non_function [object java/lang/Object]) (exception.report - "Non-function" (ffi.of_string (java/lang/Object::toString object)))) + (list ["Non-function" (ffi.of_string (java/lang/Object::toString object))]))) (def ensure_function (-> Macro (Maybe net/sandius/rembulan/runtime/LuaFunction)) |