From a5929f346dd9a2d19f061c2dad7df5ffd146d8bd Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 19 Apr 2019 11:38:02 +0200 Subject: [PATCH] Replace System.exit with throwing an Exception --- .../mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java b/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java index 1ee40d9..e087cb9 100644 --- a/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java +++ b/src/de/mas/wiiu/jnus/implementations/wud/reader/WUDDiscReader.java @@ -161,7 +161,7 @@ public abstract class WUDDiscReader { public RandomAccessFile getRandomAccessFileStream() throws FileNotFoundException { if (getImage() == null || getImage().getFileHandle() == null) { log.warning("No image or image filehandle set."); - System.exit(1); // TODO: NOOOOOOOOOOOOO + throw new FileNotFoundException("No image or image filehandle set."); } return new RandomAccessFile(getImage().getFileHandle(), "r"); }