fix typo in hint about WASMTIME_BACKTRACE_DETAILS env var (#5443)

* fix typo in hint about WASMTIME_BACKTRACE_DETAILS env var

* Update traps.rs
This commit is contained in:
Jake Champion
2022-12-15 00:33:36 +00:00
committed by GitHub
parent c0b587ac5f
commit 0a6a28a4fb
2 changed files with 2 additions and 2 deletions

View File

@@ -389,7 +389,7 @@ impl fmt::Display for WasmBacktrace {
} }
} }
if self.hint_wasm_backtrace_details_env { if self.hint_wasm_backtrace_details_env {
write!(f, "\nnote: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable to may show more debugging information")?; write!(f, "\nnote: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information")?;
} }
Ok(()) Ok(())
} }

View File

@@ -790,7 +790,7 @@ fn hint_with_dwarf_info() -> Result<()> {
"\ "\
error while executing at wasm backtrace: error while executing at wasm backtrace:
0: 0x1a - <unknown>!start 0: 0x1a - <unknown>!start
note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable to may show more debugging information note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information
Caused by: Caused by:
wasm trap: wasm `unreachable` instruction executed\ wasm trap: wasm `unreachable` instruction executed\