mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +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:
		| @@ -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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user