mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +00:00
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:
parent
a238d8c6bd
commit
f5099620f1
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user