From b78c7130e9986ce41284f33a0803ecdf6dd6affd Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 10 Nov 2023 13:40:39 -0500 Subject: fix: improve `deno doc --lint` error messages (#21156) This also updates deno_graph, which has the JSR change to use "exports". It's not yet useful atm, so I've made this PR a fix about the deno doc --lint error message improvements. I'll do a follow-up PR that adds exports to the deno.json --- cli/errors.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/errors.rs') diff --git a/cli/errors.rs b/cli/errors.rs index 0e3ff4f30..8a6062d8f 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -36,6 +36,8 @@ fn get_module_graph_error_class(err: &ModuleGraphError) -> &'static str { | ModuleError::UnsupportedImportAttributeType { .. } => "TypeError", ModuleError::Missing(_, _) | ModuleError::MissingDynamic(_, _) + | ModuleError::MissingWorkspaceMemberExports { .. } + | ModuleError::UnknownExport { .. } | ModuleError::UnknownPackage { .. } | ModuleError::UnknownPackageReq { .. } => "NotFound", }, -- cgit v1.2.3