Skip to content

Commit

Permalink
Reword env var hint for dwarf debug info (#3081)
Browse files Browse the repository at this point in the history
* Reword env var hint for dwarf debug info

Try not to declare that more information will indeed be displayed,
instead suggest that the output may improve if the env var is set since
dwarf debug info wasn't parsed.

cc bytecodealliance/wasmtime-go#90

* Fix test assertion
  • Loading branch information
alexcrichton authored Jul 15, 2021
1 parent f3b80ec commit 3da6777
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 @@ -363,7 +363,7 @@ impl fmt::Display for Trap {
}
}
if self.inner.hint_wasm_backtrace_details_env {
writeln!(f, "note: run with `WASMTIME_BACKTRACE_DETAILS=1` environment variable to display more information")?;
writeln!(f, "note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable to 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 @@ -600,7 +600,7 @@ fn hint_with_dwarf_info() -> Result<()> {
wasm trap: unreachable
wasm backtrace:
0: 0x1a - <unknown>!start
note: run with `WASMTIME_BACKTRACE_DETAILS=1` environment variable to display more information
note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable to may show more debugging information
"
);
Ok(())
Expand Down

0 comments on commit 3da6777

Please sign in to comment.