diff options
| author | Matthieu <matthieu@developershouse.xyz> | 2021-10-15 14:20:59 +0400 |
|---|---|---|
| committer | Matthieu <matthieu@developershouse.xyz> | 2021-10-15 14:20:59 +0400 |
| commit | bd637cc3c77dd246ff3a154461ae7e83e1e648b5 (patch) | |
| tree | aabeb99a177543e2c6a887d811d1327e2b5d962f /common/rust/src | |
| parent | 8250b77a23b1a4f3102dcb9fe43a745f752462ce (diff) | |
fix circle ci
Diffstat (limited to 'common/rust/src')
| -rw-r--r-- | common/rust/src/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/rust/src/error.rs b/common/rust/src/error.rs index be1607a..1a24657 100644 --- a/common/rust/src/error.rs +++ b/common/rust/src/error.rs @@ -10,3 +10,9 @@ impl fmt::Display for NovaError { write!(f, "An error occurred within the nova system: {}", self.message) // user-facing output } } + +impl From<&str> for NovaError { + fn from(message: &str) -> Self { + NovaError { message: message.to_string() } + } +}
\ No newline at end of file |
