Skip to content

Commit

Permalink
Use qualified exit for critical errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Mar 4, 2024
1 parent 5684aac commit 32dc99c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import net.jan.moddirector.core.ui.page.ProgressPage;
import net.jan.moddirector.core.util.WebClient;
import net.jan.moddirector.core.util.WebGetResponse;
import net.minecraftforge.fml.exit.QualifiedExit;

import java.io.BufferedReader;
import java.io.IOException;
Expand Down Expand Up @@ -240,7 +241,7 @@ public void errorExit() {
});
logger.log(ModDirectorSeverityLevel.ERROR, "ModDirector", "CORE",
"============================================================");
System.exit(1);
QualifiedExit.exit(1);
}

private void awaitAll(List<Future<Void>> futures) throws InterruptedException {
Expand Down

0 comments on commit 32dc99c

Please sign in to comment.