summaryrefslogtreecommitdiffstats
path: root/crates/core/c8y_smartrest/src/error.rs
diff options
context:
space:
mode:
authorinitard <alex.solomes@softwareag.com>2021-12-06 17:42:17 +0000
committerGitHub <noreply@github.com>2021-12-06 17:42:17 +0000
commit07f7d72b3c207c7c9e651fee5438b6f89fc97371 (patch)
tree3f25b4979428466a4aaaaf883958c40b6c9d8d2d /crates/core/c8y_smartrest/src/error.rs
parent64f727c2ecebbc9026dd58622a405ed69f67173f (diff)
Feature/599/restart device cloud operation (#662)
* cloud restart operation #599 Signed-off-by: initard <solo@softwareag.com> * operation set to executing c8y #599 Signed-off-by: initard <solo@softwareag.com> * cargo fmt Signed-off-by: initard <solo@softwareag.com> * removing debug hard-coded echo Signed-off-by: initard <solo@softwareag.com> * updated handle_restart_opeartion signature in test #599 Signed-off-by: initard <solo@softwareag.com> * test update for c8y_Restart Signed-off-by: initard <solo@softwareag.com> * removed panic on empty restart request #599 Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
Diffstat (limited to 'crates/core/c8y_smartrest/src/error.rs')
-rw-r--r--crates/core/c8y_smartrest/src/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/core/c8y_smartrest/src/error.rs b/crates/core/c8y_smartrest/src/error.rs
index 03fd5125..4539ac02 100644
--- a/crates/core/c8y_smartrest/src/error.rs
+++ b/crates/core/c8y_smartrest/src/error.rs
@@ -32,4 +32,7 @@ pub enum SmartRestDeserializerError {
parameter: String,
hint: String,
},
+
+ #[error("Empty request")]
+ EmptyRequest,
}