Don't need full Java stacktrace on Lua errors

This commit is contained in:
AnimeGitB 2022-10-07 23:06:26 +10:30
parent dd6e1bb8a3
commit 0b9cab5ad5

View File

@ -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;
} }
} }