Skip to content

Commit 34c1afd

Browse files
committed
easier to read error when someone just double clicks romloader.exe
1 parent f46ccc9 commit 34c1afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/romloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def main():
4444
try:
4545
rompath = sys.argv[1]
4646
except IndexError:
47-
print('We need a path to the ROM file to load.')
47+
raise IndexError('We need a path to the ROM file to load.')
4848
sys.exit(1)
4949
filename = os.path.basename(rompath)
5050

0 commit comments

Comments
 (0)