This commit is contained in:
Anuken
2019-10-29 14:58:48 -04:00
parent c540f8e5f5
commit d1dcce31a5
8 changed files with 12 additions and 14 deletions

View File

@@ -430,7 +430,7 @@ public class Mods implements Loadable{
if(content != null){
throw new ModLoadException(Strings.format("Error loading '{0}' from mod '{1}' ({2}):\n{3}",
content, mod.meta.name, content.sourceFile.name(), realCause), content, t);
content, mod.meta.name, content.sourceFile == null ? "<unknown file>" : content.sourceFile.name(), realCause), content, t);
}else{
throw new ModLoadException("Error loading mod " + mod.meta.name, t);
}