Skip to content

Commit

Permalink
fix typo in hint about WASMTIME_BACKTRACE_DETAILS env var (#5443)
Browse files Browse the repository at this point in the history
* fix typo in hint about WASMTIME_BACKTRACE_DETAILS env var

* Update traps.rs
  • Loading branch information
JakeChampion authored Dec 15, 2022
1 parent c0b587a commit 0a6a28a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/wasmtime/src/trap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl fmt::Display for WasmBacktrace {
}
}
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(())
}
Expand Down
2 changes: 1 addition & 1 deletion tests/all/traps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ fn hint_with_dwarf_info() -> Result<()> {
"\
error while executing at wasm backtrace:
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:
wasm trap: wasm `unreachable` instruction executed\
Expand Down

0 comments on commit 0a6a28a

Please sign in to comment.