1
0
mirror of https://github.com/pfusik/xasm.git synced 2024-12-11 02:49:19 +00:00

Fix unreachable statement.

This commit is contained in:
Piotr Fusik 2019-10-16 09:28:13 +02:00
parent 7ad066fc6f
commit 2f8e97499d

View File

@ -1081,13 +1081,13 @@ File openInputFile(string filename) {
}
File openOutputFile(string filename, string msg) {
if (!getOption('q'))
writeln(msg);
try {
return File(filename, "wb");
} catch (Exception e) {
throw new AssemblyError(e.msg);
}
if (!getOption('q'))
writeln(msg);
}
void ensureListingFileOpen(char letter, string msg) {