summaryrefslogtreecommitdiff
path: root/cli/errors.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-09 22:00:23 -0500
committerGitHub <noreply@github.com>2023-02-09 22:00:23 -0500
commitb3e88e0681248631b4bf8e4d9cd2e4d2c651f333 (patch)
treecd526bb63ef712e21aef24ff77703727791f48d5 /cli/errors.rs
parent8da235adced567839912344ba092fb445683485a (diff)
refactor: deno_graph 0.43 upgrade (#17692)
Diffstat (limited to 'cli/errors.rs')
-rw-r--r--cli/errors.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/errors.rs b/cli/errors.rs
index 823d32da5..eb7282265 100644
--- a/cli/errors.rs
+++ b/cli/errors.rs
@@ -25,15 +25,17 @@ fn get_diagnostic_class(_: &Diagnostic) -> &'static str {
fn get_module_graph_error_class(err: &ModuleGraphError) -> &'static str {
match err {
- ModuleGraphError::LoadingErr(_, err) => get_error_class_name(err.as_ref()),
+ ModuleGraphError::LoadingErr(_, _, err) => {
+ get_error_class_name(err.as_ref())
+ }
ModuleGraphError::InvalidTypeAssertion { .. } => "SyntaxError",
ModuleGraphError::ParseErr(_, diagnostic) => {
get_diagnostic_class(diagnostic)
}
ModuleGraphError::ResolutionError(err) => get_resolution_error_class(err),
- ModuleGraphError::UnsupportedMediaType(_, _)
- | ModuleGraphError::UnsupportedImportAssertionType(_, _) => "TypeError",
- ModuleGraphError::Missing(_) => "NotFound",
+ ModuleGraphError::UnsupportedMediaType { .. }
+ | ModuleGraphError::UnsupportedImportAssertionType { .. } => "TypeError",
+ ModuleGraphError::Missing(_, _) => "NotFound",
}
}