mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-03 21:12:53 +08:00
Don't need full Java stacktrace on Lua errors
This commit is contained in:
parent
dd6e1bb8a3
commit
0b9cab5ad5
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user