diff options
| author | Matthieu <matthieu@developershouse.xyz> | 2021-09-19 18:12:41 +0400 |
|---|---|---|
| committer | Matthieu <matthieu@developershouse.xyz> | 2021-09-19 18:12:41 +0400 |
| commit | 6d3caebc79f340d26262adc2ba789b10da4108aa (patch) | |
| tree | 208e1bfe0cf036c0561555e0fc35beabfd261375 /common/rust/src/error.rs | |
| parent | 88300c45202a228d54c1e99dd3b295ef3fb9aabd (diff) | |
shard + implementation of the payload deserialization & restructure
Diffstat (limited to 'common/rust/src/error.rs')
| -rw-r--r-- | common/rust/src/error.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/common/rust/src/error.rs b/common/rust/src/error.rs index dcb7a54..b602940 100644 --- a/common/rust/src/error.rs +++ b/common/rust/src/error.rs @@ -1,5 +1,6 @@ use std::fmt; +#[derive(Debug)] pub struct NovaError { pub message: String, } @@ -9,10 +10,3 @@ impl fmt::Display for NovaError { write!(f, "An error occured wihind the nova system: {}", self.message) // user-facing output } } - -impl fmt::Debug for NovaError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{{ file: {}, line: {} }}", file!(), line!()) // programmer-facing output - } -} - |
