mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:45:45 +02:00
Generalize nu_protocol::format_shell_error
(#15996)
This commit is contained in:
@ -8,7 +8,7 @@ use notify_debouncer_full::{
|
||||
use nu_engine::{ClosureEval, command_prelude::*};
|
||||
use nu_protocol::{
|
||||
engine::{Closure, StateWorkingSet},
|
||||
format_shell_error,
|
||||
format_cli_error,
|
||||
shell_error::io::IoError,
|
||||
};
|
||||
use std::{
|
||||
@ -208,7 +208,7 @@ impl Command for Watch {
|
||||
}
|
||||
Err(err) => {
|
||||
let working_set = StateWorkingSet::new(engine_state);
|
||||
eprintln!("{}", format_shell_error(&working_set, &err));
|
||||
eprintln!("{}", format_cli_error(&working_set, &err));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user