summaryrefslogtreecommitdiff
path: root/cli/errors.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-03-23 09:54:22 -0400
committerGitHub <noreply@github.com>2022-03-23 09:54:22 -0400
commit53dac7451bbdd527aa91e01653b678547624fc39 (patch)
treec43dbc34fd4ada4249064aab2086ab64b276a460 /cli/errors.rs
parent5edcd9dd355483df6b9a8c34ca94f3f54d672b9e (diff)
chore: remove all `pub(crate)`s from the cli crate (#14083)
Diffstat (limited to 'cli/errors.rs')
-rw-r--r--cli/errors.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/errors.rs b/cli/errors.rs
index 1ae6559fe..fbf9da8e0 100644
--- a/cli/errors.rs
+++ b/cli/errors.rs
@@ -29,9 +29,7 @@ fn get_graph_error_class(err: &GraphError) -> &'static str {
get_module_graph_error_class(&err.0)
}
-pub(crate) fn get_module_graph_error_class(
- err: &ModuleGraphError,
-) -> &'static str {
+pub fn get_module_graph_error_class(err: &ModuleGraphError) -> &'static str {
match err {
ModuleGraphError::LoadingErr(_, err) => get_error_class_name(err.as_ref()),
ModuleGraphError::InvalidSource(_, _)
@@ -55,7 +53,7 @@ fn get_resolution_error_class(err: &ResolutionError) -> &'static str {
}
}
-pub(crate) fn get_error_class_name(e: &AnyError) -> &'static str {
+pub fn get_error_class_name(e: &AnyError) -> &'static str {
deno_runtime::errors::get_error_class_name(e)
.or_else(|| {
e.downcast_ref::<ImportMapError>()