Fix unsupported type message for some math related commands (#4672)

* Fix unsupported type message of some math related commands

* changing the error form for UnsupportedInput

* cargo fmt
This commit is contained in:
Justin Ma
2022-02-28 23:14:33 +08:00
committed by GitHub
parent 0924975b4c
commit b09acdb7f9
9 changed files with 54 additions and 15 deletions

View File

@ -152,7 +152,7 @@ pub enum ShellError {
#[error("Unsupported input")]
#[diagnostic(code(nu::shell::unsupported_input), url(docsrs))]
UnsupportedInput(String, #[label("{0} not supported")] Span),
UnsupportedInput(String, #[label("{0}")] Span),
#[error("Unable to parse datetime")]
#[diagnostic(