diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-29 17:13:36 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-29 17:13:36 +0800 |
| commit | 6edaa76d67ab1ff211c7cc9cd179ffbefe93a04f (patch) | |
| tree | 02d5b5f68b3d443baccbfc0ed3fc7fa16a3dd9a4 /mling | |
| parent | 05826d67f1f9166a6620475ffdeaa488917befd8 (diff) | |
Rename error types with consistent naming convention
Diffstat (limited to 'mling')
| -rw-r--r-- | mling/src/cli.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mling/src/cli.rs b/mling/src/cli.rs index 87ba4f0..705c6b4 100644 --- a/mling/src/cli.rs +++ b/mling/src/cli.rs @@ -3,7 +3,7 @@ use mingling::{ setup::{BasicProgramSetup, GeneralRendererSetup}, }; -use crate::{CMDCompletion, DispatcherNotFound, ThisProgram, display::markdown}; +use crate::{CMDCompletion, ErrorDispatcherNotFound, ThisProgram, display::markdown}; pub mod list; pub use list::*; @@ -66,7 +66,7 @@ pub fn cli_entry() { } #[renderer] -pub(crate) fn fallback_disp(prev: DispatcherNotFound) { +pub(crate) fn fallback_disp(prev: ErrorDispatcherNotFound) { r_println!("Error: command \"{}\" not found!", prev.join(" ")); r_println!("Use \"mling --help\" for more information."); } |
