mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 19:27:54 +07:00
Stack trace
This commit is contained in:
parent
6079980a50
commit
2250f2f0bc
@ -118,6 +118,7 @@ public class ContentLoader{
|
||||
callable.get(content);
|
||||
}catch(Throwable e){
|
||||
if(content.minfo.mod != null){
|
||||
Log.err(e);
|
||||
mods.handleContentError(content, e);
|
||||
}else{
|
||||
throw new RuntimeException(e);
|
||||
|
@ -454,6 +454,8 @@ public class ContentParser{
|
||||
|
||||
if(t.getMessage() != null && t instanceof JsonParseException){
|
||||
builder.append("[accent][[JsonParse][] ").append(":\n").append(t.getMessage());
|
||||
}else if(t instanceof NullPointerException){
|
||||
builder.append(Strings.parseException(t, true));
|
||||
}else{
|
||||
Array<Throwable> causes = Strings.getCauses(t);
|
||||
for(Throwable e : causes){
|
||||
|
Loading…
Reference in New Issue
Block a user