diff --git a/src/main/java/io/gitlab/jfronny/respackopts/model/Condition.java b/src/main/java/io/gitlab/jfronny/respackopts/model/Condition.java index ff882eb..c809fd0 100644 --- a/src/main/java/io/gitlab/jfronny/respackopts/model/Condition.java +++ b/src/main/java/io/gitlab/jfronny/respackopts/model/Condition.java @@ -7,6 +7,7 @@ import io.gitlab.jfronny.muscript.core.LocationalException; import io.gitlab.jfronny.muscript.core.PrettyPrintError; import io.gitlab.jfronny.muscript.data.additional.context.Scope; import io.gitlab.jfronny.muscript.runtime.Runtime; +import io.gitlab.jfronny.muscript.serialize.Decompiler; import io.gitlab.jfronny.respackopts.gson.ConditionDeserializer; import org.jetbrains.annotations.Nullable; @@ -18,13 +19,13 @@ public record Condition(String source, String sourceFile, BoolExpr expr) { } catch (LocationalException e) { throw new ConditionException( e.asPrintable(), - "Your expression was optimized to: " + expr + "\nRemember: You can use '/rpoc dump scope' to view your execution scope", + "Your expression was optimized to: " + Decompiler.decompile(expr) + "\nRemember: You can use '/rpoc dump scope' to view your execution scope", e ); } catch (RuntimeException e) { throw new ConditionException( PrettyPrintError.builder(new CodeLocation(0, 0, source, sourceFile)).setMessage(e.getMessage()).build(), - "Your expression was optimized to: " + expr + "\nRemember: You can use '/rpoc dump scope' to view your execution scope", + "Your expression was optimized to: " + Decompiler.decompile(expr) + "\nRemember: You can use '/rpoc dump scope' to view your execution scope", e ); }