diff options
author | kyoheiu <kyoheiu@outlook.com> | 2022-11-09 05:46:18 +0900 |
---|---|---|
committer | kyoheiu <kyoheiu@outlook.com> | 2022-11-09 05:46:18 +0900 |
commit | 0e78972d2f250d7fd95a9d4844bacd75256d9ea8 (patch) | |
tree | e09d6785e8dd01fee72704fb695303404b17f123 /src/errors.rs | |
parent | 86fa3380fe29d7b465c7e113097b8a6abac2951a (diff) |
Move initializing process to `run`
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index bd1ca45..0fad1ee 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -3,6 +3,7 @@ use std::path::PathBuf; #[derive(Debug)] pub enum FxError { Io(String), + Dirs(String), GetItem, OpenItem, OpenNewWindow, @@ -23,6 +24,7 @@ impl std::fmt::Display for FxError { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { let printable = match self { FxError::Io(s) => s.to_owned(), + FxError::Dirs(s) => s.to_owned(), FxError::GetItem => "Error: Cannot get item info".to_owned(), FxError::OpenItem => "Error: Cannot open item".to_owned(), FxError::OpenNewWindow => { |