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