# Windows: Fix incorrect output when \.pdb file is not found during stack trace · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/95c43e20b45aafa6b34b0aae927dbabbb0b65e32)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 95c43e20b45aafa6b34b0aae927dbabbb0b65e32

Requested commit: 95c43e20b45aafa6b34b0aae927dbabbb0b65e32

Commit: 95c43e20b45aafa6b34b0aae927dbabbb0b65e32

Tree: 71cca30464014605e68fe53453965ad45d86066c

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
Windows: Fix incorrect output when .pdb file is not found during stack trace

This `pdb.Pdb.init` call can return `error.FileNotFound`, which was previously resulting in:

    Unable to print stack trace: FileNotFound

which also aborts the stack trace printing (so any deeper stack traces are not printed).

It makes more sense to treat it as `MissingDebugInfo` which then gets printed as:

    ???:?:?: 0x7fffa8817033 in ??? (???)

and allows the stack trace to continue printing.

Note: locally, the error.FileNotFound was being triggered for me when looking for kernel32.pdb and ntdll.pdb

```

## Parents

- [96737ef499e66d8ab3e32fd4641599b1843f5b8c](https://git.cafe/gitcafe/zig/commit/96737ef499e66d8ab3e32fd4641599b1843f5b8c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/95c43e20b45aafa6b34b0aae927dbabbb0b65e32?format=markdown)
