mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-05 07:45:11 +01:00
Replace System.exit with throwing an Exception
This commit is contained in:
parent
39d10291a2
commit
a5929f346d
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user