Print mod file name on InvalidModFileException (#7241)

This commit is contained in:
sean authored and GitHub committed 2020-08-13 19:16:53 -07:00
1 parent bd428de4fa
commit e1efab0452
1 file changed
+1 -1
@@ -27,7 +27,7 @@ public class InvalidModFileException extends RuntimeException
public InvalidModFileException(String message, IModFileInfo modFileInfo)
{
super(message);
super(String.format("%s (%s)", message, ((ModFileInfo)modFileInfo).getFile().getFileName()));
this.modFileInfo = modFileInfo;
}
}