mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 12:58:11 +02:00
update miette and switch to GenericErrors (#5222)
This commit is contained in:
@ -383,10 +383,12 @@ Format: #
|
||||
None => Color::White.prefix().to_string(),
|
||||
},
|
||||
Err(err) => {
|
||||
return Err(ShellError::SpannedLabeledError(
|
||||
return Err(ShellError::GenericError(
|
||||
"error parsing hex color".to_string(),
|
||||
format!("{}", err),
|
||||
code.span()?,
|
||||
Some(code.span()?),
|
||||
None,
|
||||
Vec::new(),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user