From ffbc50d123134451388bddcf428c10ac0f14274e Mon Sep 17 00:00:00 2001 From: SRetip Date: Fri, 29 Mar 2024 14:44:16 +0200 Subject: [PATCH] fix for error tools --- module/core/process_tools/src/process.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/core/process_tools/src/process.rs b/module/core/process_tools/src/process.rs index f41e3bf120..3060f0d105 100644 --- a/module/core/process_tools/src/process.rs +++ b/module/core/process_tools/src/process.rs @@ -14,8 +14,7 @@ pub( crate ) mod private use duct::cmd; use error_tools:: { - err, - for_app::{ Error, Context }, + for_app::{ Error, Context, anyhow }, Result, }; use former::Former; @@ -198,7 +197,7 @@ pub( crate ) mod private } else { - report.error = Err( err!( "Process was finished with error code : {}", output.status ) ); + report.error = Err( anyhow!( "Process was finished with error code : {}", output.status ) ); Err( report ) }