Reword env var hint for dwarf debug info (#3081)

* 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
This commit is contained in:
Alex Crichton
2021-07-15 16:33:47 -05:00
committed by GitHub
parent f3b80ece5f
commit 3da677796b
2 changed files with 2 additions and 2 deletions

View File

@@ -363,7 +363,7 @@ impl fmt::Display for Trap {
} }
} }
if self.inner.hint_wasm_backtrace_details_env { 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(()) Ok(())
} }

View File

@@ -600,7 +600,7 @@ fn hint_with_dwarf_info() -> Result<()> {
wasm trap: unreachable wasm trap: unreachable
wasm backtrace: wasm backtrace:
0: 0x1a - <unknown>!start 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(()) Ok(())