From e8e1ead99d1892cd4f5c200189b6dd57649df2a8 Mon Sep 17 00:00:00 2001 From: xiuxiu62 Date: Thu, 7 Oct 2021 14:20:03 -0700 Subject: [PATCH] change diagnostic code on CreateNotPossible --- 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 ab7da16eae..1b1c172bc6 100644 --- a/crates/nu-protocol/src/shell_error.rs +++ b/crates/nu-protocol/src/shell_error.rs @@ -111,7 +111,7 @@ pub enum ShellError { MoveNotPossibleSingle(String, #[label("{0}")] Span), #[error("Create not possible")] - #[diagnostic(code(nu::shell::move_not_possible_single), url(docsrs))] + #[diagnostic(code(nu::shell::create_not_possible), url(docsrs))] CreateNotPossible(String, #[label("{0}")] Span), }