Fix unreachable statement.

This commit is contained in:
Piotr Fusik 2019-10-16 09:28:13 +02:00
parent 7ad066fc6f
commit 2f8e97499d
1 changed files with 2 additions and 2 deletions

View File

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