From 3fc19dab47492e06043fc7add28e64693a4eb775 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 7 Sep 2023 08:09:16 -0500 Subject: feat: support import attributes (#20342) --- cli/errors.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cli/errors.rs') diff --git a/cli/errors.rs b/cli/errors.rs index 2ffad73b3..4ea0e000a 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -31,10 +31,11 @@ fn get_module_graph_error_class(err: &ModuleGraphError) -> &'static str { ModuleError::InvalidTypeAssertion { .. } => "SyntaxError", ModuleError::ParseErr(_, diagnostic) => get_diagnostic_class(diagnostic), ModuleError::UnsupportedMediaType { .. } - | ModuleError::UnsupportedImportAssertionType { .. } => "TypeError", - ModuleError::Missing(_, _) | ModuleError::MissingDynamic(_, _) => { - "NotFound" - } + | ModuleError::UnsupportedImportAttributeType { .. } => "TypeError", + ModuleError::Missing(_, _) + | ModuleError::MissingDynamic(_, _) + | ModuleError::UnknownPackage { .. } + | ModuleError::UnknownPackageReq { .. } => "NotFound", }, ModuleGraphError::ResolutionError(err) => get_resolution_error_class(err), } -- cgit v1.2.3