From 9b248d542fa04d18444bd90ab277e23a35c6bf89 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Mon, 23 Dec 2024 13:57:23 +0100 Subject: [PATCH] Fix display panel crash when translation undefined values, Closes #27 --- .../evaluate/translation/ValueTranslatorRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cyclops/integratedscripting/evaluate/translation/ValueTranslatorRegistry.java b/src/main/java/org/cyclops/integratedscripting/evaluate/translation/ValueTranslatorRegistry.java index 25c4a099..62a72a95 100644 --- a/src/main/java/org/cyclops/integratedscripting/evaluate/translation/ValueTranslatorRegistry.java +++ b/src/main/java/org/cyclops/integratedscripting/evaluate/translation/ValueTranslatorRegistry.java @@ -70,7 +70,7 @@ public IValueTranslator getScriptValueTranslator(Value scriptValue) { public V translateFromGraal(Context context, Value value, IEvaluationExceptionFactory exceptionFactory) throws EvaluationException { IValueTranslator translator = getScriptValueTranslator(value); if (translator == null) { - throw exceptionFactory.createError(Component.translatable("valuetype.integratedscripting.error.translation.unknown_from_graal", value)); + throw exceptionFactory.createError(Component.translatable("valuetype.integratedscripting.error.translation.unknown_from_graal", value.toString())); } return (V) translator.translateFromGraal(context, value, exceptionFactory); }