Stack traces, human panic, and failure::Context are essentially runtime docs. They provide contextual information when something goes wrong. Output depends on what went wrong. Also you'll never want them ahead of time, but only when inspecting the program.
Ohh, didn't know that! -- that's very cool. Do you perhaps also know if it's possible to name the main thread? Would be cool to name it thread(main) instead of the regular thread(1) (or thread(0), I forget if it's zero-indexed haha)
-
-
it is named main, that's why the panic says "thread `main` panicked on foobar" :)
-
OSX crash logs number the threads but we have zero control over that rust backtraces use thread names
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.