Commit 0b9cab5a authored by AnimeGitB's avatar AnimeGitB
Browse files

Don't need full Java stacktrace on Lua errors

parent dd6e1bb8
...@@ -131,7 +131,7 @@ public class ScriptLoader { ...@@ -131,7 +131,7 @@ public class ScriptLoader {
scriptsCache.put(path, new SoftReference<>(script)); scriptsCache.put(path, new SoftReference<>(script));
return script; return script;
} catch (Exception e) { } catch (Exception e) {
Grasscutter.getLogger().error("Loading script {} failed!", path, e); Grasscutter.getLogger().error("Loading script {} failed! - {}", path, e.getLocalizedMessage());
return null; return null;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment