aboutsummaryrefslogtreecommitdiff
path: root/mling/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-29 17:13:36 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-29 17:13:36 +0800
commit6edaa76d67ab1ff211c7cc9cd179ffbefe93a04f (patch)
tree02d5b5f68b3d443baccbfc0ed3fc7fa16a3dd9a4 /mling/src
parent05826d67f1f9166a6620475ffdeaa488917befd8 (diff)
Rename error types with consistent naming convention
Diffstat (limited to 'mling/src')
-rw-r--r--mling/src/cli.rs4
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.");
}