mirror of
https://github.com/nushell/nushell.git
synced 2025-04-09 21:28:55 +02:00
Clarify error message for let
in pipeline (#5677)
Refer to the suggestion as an assignment
This commit is contained in:
parent
eb12fffbc6
commit
e2c015f725
@ -83,7 +83,7 @@ pub enum ParseError {
|
|||||||
code(nu::parser::unexpected_keyword),
|
code(nu::parser::unexpected_keyword),
|
||||||
url(docsrs),
|
url(docsrs),
|
||||||
help(
|
help(
|
||||||
"Assigning '{0}' to '{1}' does not produce a value to be piped. If the pipeline is meant to apply to '{0}' by itself, use 'let {1} = ({0} | ...)'."
|
"Assigning '{0}' to '{1}' does not produce a value to be piped. If the pipeline result is meant to be assigned to '{1}', use 'let {1} = ({0} | ...)'."
|
||||||
)
|
)
|
||||||
)]
|
)]
|
||||||
LetInPipeline(String, String, #[label("let in pipeline")] Span),
|
LetInPipeline(String, String, #[label("let in pipeline")] Span),
|
||||||
|
Loading…
Reference in New Issue
Block a user