Stack trace

This commit is contained in:
Anuken 2020-03-16 01:08:45 -04:00
parent 6079980a50
commit 2250f2f0bc
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -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){