From 27b06358ea3391c3ab7559cb4f652f6e583b356a Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Sat, 31 Dec 2022 21:56:59 -0800 Subject: [PATCH] Tweak new input type error message (#7646) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A tiny follow-up from https://github.com/nushell/nushell/pull/7623, changes "Only supports for specific input types" to "Input type not supported" Before: ``` 〉"asdf" | append "foo" Error: nu::shell::only_supports_this_input_type (link) × Only supports for specific input types. ╭─[entry #2:1:1] 1 │ "asdf" | append "foo" · ───┬── ───┬── · │ ╰── only list, binary, raw data or range input data is supported · ╰── input type: string ╰──── ``` After: ``` 〉"asdf" | append "foo" Error: nu::shell::only_supports_this_input_type (link) × Input type not supported. ╭─[entry #2:1:1] 1 │ "asdf" | append "foo" · ───┬── ───┬── · │ ╰── only list, binary, raw data or range input data is supported · ╰── input type: string ╰──── ``` --- crates/nu-protocol/src/shell_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-protocol/src/shell_error.rs b/crates/nu-protocol/src/shell_error.rs index d6c48402ca..0c15bc2ec9 100644 --- a/crates/nu-protocol/src/shell_error.rs +++ b/crates/nu-protocol/src/shell_error.rs @@ -51,7 +51,7 @@ pub enum ShellError { #[label("value originates from here")] Span, ), - #[error("Only supports for specific input types.")] + #[error("Input type not supported.")] #[diagnostic(code(nu::shell::only_supports_this_input_type), url(docsrs))] OnlySupportsThisInputType( String,