mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Also, improve logging so warnings, errors and fatals are always shown, regardless of marker. Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
4 files changed
+7
-2
No files matched your search
@@ -148,12 +148,12 @@ public class ModLoader
|
||||
|
||||
private void dispatchAndHandleError(LifecycleEventProvider event) {
|
||||
if (!loadingExceptions.isEmpty()) {
|
||||
LOGGER.error("Skipping lifecycle event {}, {} errors found.", event, loadingExceptions.size());
|
||||
LOGGER.error(LOADING,"Skipping lifecycle event {}, {} errors found.", event, loadingExceptions.size());
|
||||
} else {
|
||||
event.dispatch(this::accumulateErrors);
|
||||
}
|
||||
if (!loadingExceptions.isEmpty()) {
|
||||
LOGGER.fatal("Failed to complete lifecycle event {}, {} errors found", event, loadingExceptions.size());
|
||||
LOGGER.fatal(LOADING,"Failed to complete lifecycle event {}, {} errors found", event, loadingExceptions.size());
|
||||
throw new LoadingFailedException(loadingExceptions);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user