aboutsummaryrefslogtreecommitdiff
path: root/lux-python
diff options
context:
space:
mode:
authorEduardo Julian2022-07-06 16:25:43 -0400
committerEduardo Julian2022-07-06 16:25:43 -0400
commit5270f301eba5237feebc8eca14aee6b7a992a819 (patch)
treea1adb545189f4db807d712a1fcc7d20048c11222 /lux-python
parent0c32c7f03ad1f8f0db54b623dc407713bbf8cacd (diff)
Made exception.report a function.
Diffstat (limited to 'lux-python')
-rw-r--r--lux-python/source/program.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux
index a501a73f9..208a3550a 100644
--- a/lux-python/source/program.lux
+++ b/lux-python/source/program.lux
@@ -168,7 +168,7 @@
(exception (unknown_kind_of_object [object java/lang/Object])
(exception.report
- "Object" (ffi.of_string (java/lang/Object::toString object))))
+ (list ["Object" (ffi.of_string (java/lang/Object::toString object))])))
(def (read_variant read host_object)
(-> Translator Translator)
@@ -375,8 +375,8 @@
(exception (cannot_apply_a_non_function [object java/lang/Object])
(exception.report
- "Object" (ffi.of_string (java/lang/Object::toString object))
- "Class" (ffi.of_string (java/lang/Class::getName (java/lang/Object::getClass object)))))
+ (list ["Object" (ffi.of_string (java/lang/Object::toString object))]
+ ["Class" (ffi.of_string (java/lang/Class::getName (java/lang/Object::getClass object)))])))
(def (expander macro inputs lux)
Expander