mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
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:
parent
704dfaaabf
commit
ae9b90cf6e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user