diff options
Diffstat (limited to 'src/config/clean/app/tab/config.rs')
-rw-r--r-- | src/config/clean/app/tab/config.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/clean/app/tab/config.rs b/src/config/clean/app/tab/config.rs index 7e2bdda..86e156f 100644 --- a/src/config/clean/app/tab/config.rs +++ b/src/config/clean/app/tab/config.rs @@ -4,7 +4,7 @@ use serde::Deserialize; use crate::{ config::raw::app::display::tab::TabOptionRaw, - error::{JoshutoError, JoshutoErrorKind}, + error::{AppError, AppErrorKind}, tab::TabHomePage, }; @@ -73,15 +73,15 @@ pub enum TabBarDisplayMode { } impl FromStr for TabBarDisplayMode { - type Err = JoshutoError; + type Err = AppError; fn from_str(s: &str) -> Result<Self, Self::Err> { match s { "num" => Ok(Self::Number), "dir" => Ok(Self::Directory), "all" => Ok(Self::All), - s => Err(JoshutoError::new( - JoshutoErrorKind::UnrecognizedArgument, + s => Err(AppError::new( + AppErrorKind::UnrecognizedArgument, format!("tab_bar_mode: `{}` unknown argument.", s), )), } |