From 3da677796b58fac7aedaa87b51c494da4e8df2a6 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 15 Jul 2021 16:33:47 -0500 Subject: [PATCH] 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 --- crates/wasmtime/src/trap.rs | 2 +- tests/all/traps.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wasmtime/src/trap.rs b/crates/wasmtime/src/trap.rs index f248734215..cbd84eac69 100644 --- a/crates/wasmtime/src/trap.rs +++ b/crates/wasmtime/src/trap.rs @@ -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(()) } diff --git a/tests/all/traps.rs b/tests/all/traps.rs index 32ea3062f7..d2e707b13a 100644 --- a/tests/all/traps.rs +++ b/tests/all/traps.rs @@ -600,7 +600,7 @@ fn hint_with_dwarf_info() -> Result<()> { wasm trap: unreachable wasm backtrace: 0: 0x1a - !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(())