Skip to content

Commit

Permalink
Replace SMR exception with error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Aug 14, 2023
1 parent 3d6714d commit 264c51f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void check(ModDirector director, URL url) throws ModDirectorExcept
}
}

private static void initialize(ModDirector director) throws ModDirectorException {
private static void initialize(ModDirector director) {
director.getLogger().log(ModDirectorSeverityLevel.DEBUG, "StopModReposts", "CORE",
"Initializing StopModReposts module");

Expand All @@ -69,7 +69,8 @@ private static void initialize(ModDirector director) throws ModDirectorException
throw new RuntimeException(
"https://api.stopmodreposts.org/sites.json seems to be an invalid URL?", e);
} catch(IOException e) {
throw new ModDirectorException("Failed to retrieve StopModReposts database", e);
director.getLogger().log(ModDirectorSeverityLevel.ERROR, "StopModReposts", "CORE",
"Failed to retrieve StopModReposts database");
}

INITIALIZED.set(true);
Expand Down

0 comments on commit 264c51f

Please sign in to comment.