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

This commit is contained in:
Sahnvour 2019-03-15 21:45:38 +01:00
parent 704dfaaabf
commit ae9b90cf6e

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 {