From ac2afab40b18eac47faab7ca9c3905dcba5b8b40 Mon Sep 17 00:00:00 2001 From: JT <547158+jntrnr@users.noreply.github.com> Date: Thu, 2 Dec 2021 19:36:30 +1300 Subject: [PATCH] Fix parse error metadata (#399) --- 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 8c6635b107..1bacb20741 100644 --- a/crates/nu-parser/src/errors.rs +++ b/crates/nu-parser/src/errors.rs @@ -188,7 +188,7 @@ pub enum ParseError { ExportNotFound(#[label = "could not find imports"] Span), #[error("File not found")] - #[diagnostic(code(nu::parser::export_not_found), url(docsrs))] + #[diagnostic(code(nu::parser::file_not_found), url(docsrs))] FileNotFound(String), #[error("{0}")]