summaryrefslogtreecommitdiff
path: root/cli/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/errors.rs')
-rw-r--r--cli/errors.rs3
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)
}