summaryrefslogtreecommitdiff
path: root/cli/errors.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-15 11:30:54 -0500
committerGitHub <noreply@github.com>2023-02-15 11:30:54 -0500
commitb34e751a5b2193e8ce65203386e00147c08a7a64 (patch)
tree47ad04c90e4df431396185b1e3d15fcd2623a973 /cli/errors.rs
parentc7535950b6de086fce741809728129c79288dee8 (diff)
refactor: make resolver required (#17783)
Makes the resolver required and prints a warning when vendoring and a dynamic import can't be resolved. Closes #16522
Diffstat (limited to 'cli/errors.rs')
-rw-r--r--cli/errors.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/errors.rs b/cli/errors.rs
index eb7282265..4dc22efbf 100644
--- a/cli/errors.rs
+++ b/cli/errors.rs
@@ -35,7 +35,8 @@ fn get_module_graph_error_class(err: &ModuleGraphError) -> &'static str {
ModuleGraphError::ResolutionError(err) => get_resolution_error_class(err),
ModuleGraphError::UnsupportedMediaType { .. }
| ModuleGraphError::UnsupportedImportAssertionType { .. } => "TypeError",
- ModuleGraphError::Missing(_, _) => "NotFound",
+ ModuleGraphError::Missing(_, _)
+ | ModuleGraphError::MissingDynamic(_, _) => "NotFound",
}
}