Added server mod error check

This commit is contained in:
Anuken
2019-12-17 10:58:43 -05:00
parent 8d921199fb
commit 26881fbdb9
4 changed files with 20 additions and 3 deletions

View File

@@ -54,9 +54,10 @@ public abstract class Content implements Comparable<Content>{
/** The mod that loaded this piece of content. */
public @Nullable LoadedMod mod;
/** File that this content was loaded from. */
public @Nullable
Fi sourceFile;
public @Nullable Fi sourceFile;
/** The error that occurred during loading, if applicable. Null if no error occurred. */
public @Nullable String error;
/** Base throwable that caused the error. */
public @Nullable Throwable baseError;
}
}

View File

@@ -437,6 +437,7 @@ public class ContentParser{
content.minfo.mod = mod;
content.minfo.sourceFile = file;
content.minfo.error = makeError(error, file);
content.minfo.baseError = error;
if(mod != null){
mod.erroredContent.add(content);
}