print a message instead of returning an error when debug info comes from a source file not found (for example compiled on another computer)

master
Sahnvour 2019-03-15 21:45:38 +01:00
parent 704dfaaabf
commit ae9b90cf6e
1 changed files with 5 additions and 0 deletions

View File

@ -478,6 +478,11 @@ fn printSourceAtAddressWindows(di: *DebugInfo, out_stream: var, relocated_addres
}
} else |err| switch (err) {
error.EndOfFile => {},
error.FileNotFound => {
setTtyColor(TtyColor.Dim);
try out_stream.write("file not found\n\n");
setTtyColor(TtyColor.White);
},
else => return err,
}
} else {