Stack trace
This commit is contained in:
@@ -118,6 +118,7 @@ public class ContentLoader{
|
|||||||
callable.get(content);
|
callable.get(content);
|
||||||
}catch(Throwable e){
|
}catch(Throwable e){
|
||||||
if(content.minfo.mod != null){
|
if(content.minfo.mod != null){
|
||||||
|
Log.err(e);
|
||||||
mods.handleContentError(content, e);
|
mods.handleContentError(content, e);
|
||||||
}else{
|
}else{
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|||||||
@@ -454,6 +454,8 @@ public class ContentParser{
|
|||||||
|
|
||||||
if(t.getMessage() != null && t instanceof JsonParseException){
|
if(t.getMessage() != null && t instanceof JsonParseException){
|
||||||
builder.append("[accent][[JsonParse][] ").append(":\n").append(t.getMessage());
|
builder.append("[accent][[JsonParse][] ").append(":\n").append(t.getMessage());
|
||||||
|
}else if(t instanceof NullPointerException){
|
||||||
|
builder.append(Strings.parseException(t, true));
|
||||||
}else{
|
}else{
|
||||||
Array<Throwable> causes = Strings.getCauses(t);
|
Array<Throwable> causes = Strings.getCauses(t);
|
||||||
for(Throwable e : causes){
|
for(Throwable e : causes){
|
||||||
|
|||||||
Reference in New Issue
Block a user