authorgravatar for sahnvour@pm.meSahnvour <sahnvour@pm.me> 2019-03-15 21:45:38+01:00
committergravatar for sahnvour@pm.meSahnvour <sahnvour@pm.me> 2019-03-16 15:34:14+01:00
logae9b90cf6ea1d3f214a9058be8e147911b745f00
tree1465f9cb0ff7ae8692baaaa7305e5167cbf062cb
parent704dfaaabf2cf2253a6d58cc25f6cd8eff8c87bd

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


1 files changed, 5 insertions(+), 0 deletions(-)

std/debug.zig+5
......@@ -478,6 +478,11 @@ fn printSourceAtAddressWindows(di: *DebugInfo, out_stream: var, relocated_addres
478478 }
479479 } else |err| switch (err) {
480480 error.EndOfFile => {},
481 error.FileNotFound => {
482 setTtyColor(TtyColor.Dim);
483 try out_stream.write("file not found\n\n");
484 setTtyColor(TtyColor.White);
485 },
481486 else => return err,
482487 }
483488 } else {