summaryrefslogtreecommitdiffstats
path: root/src/fail.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fail.rs')
-rw-r--r--src/fail.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fail.rs b/src/fail.rs
index cf5acab..4e793ac 100644
--- a/src/fail.rs
+++ b/src/fail.rs
@@ -185,6 +185,12 @@ impl HError {
}
+#[derive(Fail, Debug, Clone)]
+pub enum ErrorCause {
+ #[fail(display = "{}", _0)]
+ Str(String)
+}
+
lazy_static! {
static ref LOG: Mutex<Vec<LogEntry>> = Mutex::new(vec![]);