diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-12-23 00:25:06 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 14:25:06 +0100 |
commit | 8547a37132752cf6a979237c5a52a7bf16a4e833 (patch) | |
tree | 10e14c5aa8675bf75c8aa66bf7bf1f7de6948fee /cli/errors.rs | |
parent | ac06797fa8607f2e15477fe1b038215740a5747d (diff) |
chore: update deno_graph and deno_doc (#13173)
Diffstat (limited to 'cli/errors.rs')
-rw-r--r-- | cli/errors.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/errors.rs b/cli/errors.rs index bd5793430..9d0f1371a 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -34,12 +34,14 @@ pub(crate) fn get_module_graph_error_class( ) -> &'static str { match err { ModuleGraphError::LoadingErr(_, err) => get_error_class_name(err.as_ref()), - ModuleGraphError::InvalidSource(_, _) => "SyntaxError", + ModuleGraphError::InvalidSource(_, _) + | ModuleGraphError::InvalidTypeAssertion { .. } => "SyntaxError", ModuleGraphError::ParseErr(_, diagnostic) => { get_diagnostic_class(diagnostic) } ModuleGraphError::ResolutionError(err) => get_resolution_error_class(err), - ModuleGraphError::UnsupportedMediaType(_, _) => "TypeError", + ModuleGraphError::UnsupportedMediaType(_, _) + | ModuleGraphError::UnsupportedImportAssertionType(_, _) => "TypeError", ModuleGraphError::Missing(_) => "NotFound", } } |