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}")]