From bd637cc3c77dd246ff3a154461ae7e83e1e648b5 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Fri, 15 Oct 2021 14:20:59 +0400 Subject: fix circle ci --- common/rust/src/error.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/rust/src') 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 -- cgit v1.2.3