const unexpected_error_tracing: bool = builtin.zig_backend == .stage2_llvm and builtin.mode == .Debug;

Whether or not error.Unexpected will print its value and a stack trace. if this happens the fix is to add the error code to the corresponding switch expression, possibly introduce a new error in the error set, and send a patch to Zig.