diff options
Diffstat (limited to 'crates/core/tedge_mapper/src/c8y/error.rs')
-rw-r--r-- | crates/core/tedge_mapper/src/c8y/error.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/core/tedge_mapper/src/c8y/error.rs b/crates/core/tedge_mapper/src/c8y/error.rs index f9623007..add72d82 100644 --- a/crates/core/tedge_mapper/src/c8y/error.rs +++ b/crates/core/tedge_mapper/src/c8y/error.rs @@ -41,8 +41,12 @@ pub enum CumulocityMapperError { #[error(transparent)] FromIo(#[from] std::io::Error), - #[error("Operation execution failed: {0}")] - ExecuteFailed(String), + #[error("Operation execution failed: {error_message}. Command: {command}. Operation name: {operation_name}")] + ExecuteFailed { + error_message: String, + command: String, + operation_name: String, + }, #[error("An unknown operation template: {0}")] UnknownOperation(String), |