summaryrefslogtreecommitdiff
path: root/cli/errors.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-09-07 08:09:16 -0500
committerGitHub <noreply@github.com>2023-09-07 09:09:16 -0400
commit3fc19dab47492e06043fc7add28e64693a4eb775 (patch)
tree855e952933662aef37bd20c084901ae0e488b2db /cli/errors.rs
parent01a761f1d4f7ff4943fbf80464a276b434d8a8f7 (diff)
feat: support import attributes (#20342)
Diffstat (limited to 'cli/errors.rs')
-rw-r--r--cli/errors.rs9
1 files changed, 5 insertions, 4 deletions
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),
}