summaryrefslogtreecommitdiffstats
path: root/crates/core/c8y_smartrest/src/error.rs
diff options
context:
space:
mode:
authorinitard <solo@softwareag.com>2022-03-02 15:28:36 +0000
committerinitard <solo@softwareag.com>2022-03-11 15:26:44 +0000
commit93dabe8a9f69cd4f5b73e778d07fc8a8a22a83d9 (patch)
tree62238295cc876646839a4ee52ac73fb63aa086a8 /crates/core/c8y_smartrest/src/error.rs
parentc2bdfde1e2c1fc7e53aa5aa0f8a595422aeb7897 (diff)
error handling on tedge-agent start up
Signed-off-by: initard <solo@softwareag.com> Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
Diffstat (limited to 'crates/core/c8y_smartrest/src/error.rs')
-rw-r--r--crates/core/c8y_smartrest/src/error.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/core/c8y_smartrest/src/error.rs b/crates/core/c8y_smartrest/src/error.rs
index 9531f372..6e0b3d70 100644
--- a/crates/core/c8y_smartrest/src/error.rs
+++ b/crates/core/c8y_smartrest/src/error.rs
@@ -1,5 +1,5 @@
use agent_interface::SoftwareUpdateResponse;
-use std::path::PathBuf;
+use std::path::{Path, PathBuf};
#[derive(thiserror::Error, Debug)]
pub enum SmartRestSerializerError {
@@ -43,6 +43,9 @@ pub enum SmartRestDeserializerError {
#[derive(Debug, thiserror::Error)]
pub enum OperationsError {
+ #[error("Failed to read directory: {dir}")]
+ ReadDirError { dir: PathBuf },
+
#[error(transparent)]
FromIo(#[from] std::io::Error),