Skip to content

Tweak new input type error message#7646

Merged
rgwood merged 1 commit intonushell:mainfrom
rgwood:fix-input-type-error-message
Jan 1, 2023
Merged

Tweak new input type error message#7646
rgwood merged 1 commit intonushell:mainfrom
rgwood:fix-input-type-error-message

Conversation

@rgwood
Copy link
Copy Markdown
Contributor

@rgwood rgwood commented Jan 1, 2023

A tiny follow-up from #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
   ╰────

@rgwood rgwood merged commit 27b0635 into nushell:main Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant