From 545b1dcd942fdf334d6f744d4be66a30bf3d944c Mon Sep 17 00:00:00 2001 From: pwygab <88221256+merelymyself@users.noreply.github.com> Date: Fri, 27 May 2022 19:04:33 +0800 Subject: [PATCH] Add search terms to error make (#5657) * add search terms to error make * add throw Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com> --- crates/nu-command/src/core_commands/error_make.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/nu-command/src/core_commands/error_make.rs b/crates/nu-command/src/core_commands/error_make.rs index bfd3ec7695..d43c2f1581 100644 --- a/crates/nu-command/src/core_commands/error_make.rs +++ b/crates/nu-command/src/core_commands/error_make.rs @@ -24,6 +24,10 @@ impl Command for ErrorMake { "Create an error." } + fn search_terms(&self) -> Vec<&str> { + vec!["err", "panic", "crash", "throw"] + } + fn run( &self, engine_state: &EngineState,