diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-02-15 11:30:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 11:30:54 -0500 |
commit | b34e751a5b2193e8ce65203386e00147c08a7a64 (patch) | |
tree | 47ad04c90e4df431396185b1e3d15fcd2623a973 /cli/errors.rs | |
parent | c7535950b6de086fce741809728129c79288dee8 (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.rs | 3 |
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", } } |