Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Use generic exception to avoid reflection crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jaghaimo committed Jun 13, 2022
1 parent 5f1534d commit 539a90d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stelnet/util/Reporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.fs.starfarer.api.Global;
import com.fs.starfarer.api.ModSpecAPI;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import lombok.extern.log4j.Log4j;

Expand All @@ -17,7 +16,7 @@ public static void generate() {
writer.println("");
writeMods(writer);
writer.close();
} catch (FileNotFoundException e) {
} catch (Exception e) {
log.error("Could not write to file", e);
}
}
Expand Down

0 comments on commit 539a90d

Please sign in to comment.