forked from extern/nushell
update miette and switch to GenericErrors (#5222)
This commit is contained in:
@ -36,9 +36,12 @@ impl Command for KeybindingsListen {
|
||||
Ok(v) => Ok(v.into_pipeline_data()),
|
||||
Err(e) => {
|
||||
terminal::disable_raw_mode()?;
|
||||
Err(ShellError::LabeledError(
|
||||
Err(ShellError::GenericError(
|
||||
"Error with input".to_string(),
|
||||
e.to_string(),
|
||||
"".to_string(),
|
||||
None,
|
||||
Some(e.to_string()),
|
||||
Vec::new(),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user