tools: Enable extra detail on error

The `agent-ctl` and `trace-forwarder` tools make use of
`anyhow::Context` to provide additional call site information on error.

However, previously neither tool was using the "alternate debug" format
to display the error, meaning full error output was not displayed.

Fixes: #4411.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2022-06-07 13:58:56 +01:00
parent a238d8c6bd
commit f5099620f1
2 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ fn real_main() -> Result<()> {
fn main() { fn main() {
if let Err(e) = real_main() { if let Err(e) = real_main() {
eprintln!("ERROR: {}", e); eprintln!("ERROR: {:#?}", e);
exit(1); exit(1);
} }
} }

View File

@ -282,7 +282,7 @@ fn real_main() -> Result<()> {
fn main() { fn main() {
if let Err(e) = real_main() { if let Err(e) = real_main() {
eprintln!("ERROR: {}", e); eprintln!("ERROR: {:#?}", e);
exit(1); exit(1);
} }
exit(0); exit(0);