From 0b9cab5ad5a6d42806eb1800fa35138fdddd092b Mon Sep 17 00:00:00 2001 From: AnimeGitB Date: Fri, 7 Oct 2022 23:06:26 +1030 Subject: [PATCH] Don't need full Java stacktrace on Lua errors --- src/main/java/emu/grasscutter/scripts/ScriptLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/scripts/ScriptLoader.java b/src/main/java/emu/grasscutter/scripts/ScriptLoader.java index 16353e707..84e3e784c 100644 --- a/src/main/java/emu/grasscutter/scripts/ScriptLoader.java +++ b/src/main/java/emu/grasscutter/scripts/ScriptLoader.java @@ -131,7 +131,7 @@ public class ScriptLoader { scriptsCache.put(path, new SoftReference<>(script)); return script; } catch (Exception e) { - Grasscutter.getLogger().error("Loading script {} failed!", path, e); + Grasscutter.getLogger().error("Loading script {} failed! - {}", path, e.getLocalizedMessage()); return null; } }