1
0
mirror of https://github.com/nushell/nushell.git synced 2025-07-05 09:00:25 +02:00

Add search terms to error make ()

* add search terms to error make

* add throw

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
This commit is contained in:
pwygab
2022-05-27 19:04:33 +08:00
committed by GitHub
parent fb89f2f48c
commit 545b1dcd94

@ -24,6 +24,10 @@ impl Command for ErrorMake {
"Create an error." "Create an error."
} }
fn search_terms(&self) -> Vec<&str> {
vec!["err", "panic", "crash", "throw"]
}
fn run( fn run(
&self, &self,
engine_state: &EngineState, engine_state: &EngineState,