Don't print line info if source is not available

This commit is contained in:
Robin Voetter 2019-08-29 10:52:50 +02:00
parent 108a51b110
commit e4c262b804

View File

@ -793,7 +793,7 @@ fn printLineInfo(
try out_stream.write(GREEN ++ "^" ++ RESET ++ "\n");
}
} else |err| switch (err) {
error.EndOfFile => {},
error.EndOfFile, error.FileNotFound => {},
else => return err,
}
} else {