diff options
author | rabite <rabite@posteo.de> | 2019-03-20 13:58:59 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-03-20 13:58:59 +0100 |
commit | 9a711bbe96d753d0dbf70007adc0ff89823aa9ad (patch) | |
tree | f8c0fc8cf12967a5c1a5409b37f6800a050a5c27 /src/fail.rs | |
parent | c2297ab4945d010d4106d35a34ec83314891c34f (diff) |
handle long lines in status/footer
Diffstat (limited to 'src/fail.rs')
-rw-r--r-- | src/fail.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fail.rs b/src/fail.rs index 97cbd62..580aad1 100644 --- a/src/fail.rs +++ b/src/fail.rs @@ -69,9 +69,14 @@ pub enum HError { WidgetUndefinedKeyError{key: Key}, #[fail(display = "Terminal has been resized!")] TerminalResizedError, + #[fail(display = "{}", _0)] + Log(String) } impl HError { + pub fn log(log: String) -> HResult<()> { + Err(HError::Log(log)) + } pub fn quit() -> HResult<()> { Err(HError::Quit) } |