diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-12-06 14:12:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-06 14:12:51 -0500 |
| commit | c03e0f3853490e804fe30fc566b45150061badc9 (patch) | |
| tree | 0f23dad9542c8cf80d0861c2932e2eb1b9e6fc3a /cli/errors.rs | |
| parent | 3e47a27f4fa528b91ac60b07ee6931f47fed0bc5 (diff) | |
refactor: remove `deno_graph::Locker` usage (#16877)
This is just a straight refactor and doesn't make any improvements to
the code that could now be made.
Closes #16493
Diffstat (limited to 'cli/errors.rs')
| -rw-r--r-- | cli/errors.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/errors.rs b/cli/errors.rs index 2b5d19503..eb6667bbe 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -26,8 +26,7 @@ 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::InvalidSource(_, _) - | ModuleGraphError::InvalidTypeAssertion { .. } => "SyntaxError", + ModuleGraphError::InvalidTypeAssertion { .. } => "SyntaxError", ModuleGraphError::ParseErr(_, diagnostic) => { get_diagnostic_class(diagnostic) } |
