mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
update miette and switch to GenericErrors (#5222)
This commit is contained in:
@ -549,8 +549,12 @@ impl Command for BlockCommand {
|
||||
_call: &Call,
|
||||
_input: PipelineData,
|
||||
) -> Result<crate::PipelineData, crate::ShellError> {
|
||||
Err(ShellError::UnlabeledError(
|
||||
Err(ShellError::GenericError(
|
||||
"Internal error: can't run custom command with 'run', use block_id".to_string(),
|
||||
"".to_string(),
|
||||
None,
|
||||
None,
|
||||
Vec::new(),
|
||||
))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user