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. --- lux-python/source/program.lux | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lux-python') 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 -- cgit v1.2.3