From e2c015f72509d0c6f9bc281182954c37e5173d91 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Mon, 30 May 2022 09:26:33 +0200 Subject: [PATCH] Clarify error message for `let` in pipeline (#5677) Refer to the suggestion as an assignment --- crates/nu-parser/src/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-parser/src/errors.rs b/crates/nu-parser/src/errors.rs index a2ed170d31..1ac505945c 100644 --- a/crates/nu-parser/src/errors.rs +++ b/crates/nu-parser/src/errors.rs @@ -83,7 +83,7 @@ pub enum ParseError { code(nu::parser::unexpected_keyword), url(docsrs), 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),