Skip to content

Commit 68fd66d

Browse files
committed
trace default on for wasi
1 parent d18548b commit 68fd66d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vm/src/vm/vm_object.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ impl VirtualMachine {
3030
fn _py_panic_failed(&self, exc: PyBaseExceptionRef, msg: &str) -> ! {
3131
#[cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"))))]
3232
{
33-
let show_backtrace = std::env::var_os("RUST_BACKTRACE").map_or(false, |v| &v != "0");
33+
let show_backtrace =
34+
std::env::var_os("RUST_BACKTRACE").map_or(cfg!(target_os = "wasi"), |v| &v != "0");
3435
let after = if show_backtrace {
3536
self.print_exception(exc);
3637
"exception backtrace above"

0 commit comments

Comments
 (0)