summaryrefslogtreecommitdiff
path: root/cli/errors.rs
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2024-07-29 22:28:04 +0530
committerGitHub <noreply@github.com>2024-07-29 12:58:04 -0400
commit8c2f1f5a55a2a9bb9e04c12236faa341b3fd49b6 (patch)
treef32705f9ab92d0f3f8c839f1cb00918fcd32cd05 /cli/errors.rs
parent8bab761bccf976ac568b0b3f4decfd7e77747767 (diff)
chore: upgrade to rust 1.80 (#24778)
Diffstat (limited to 'cli/errors.rs')
-rw-r--r--cli/errors.rs15
1 files changed, 1 insertions, 14 deletions
diff --git a/cli/errors.rs b/cli/errors.rs
index 9fe433f18..a8fde6e76 100644
--- a/cli/errors.rs
+++ b/cli/errors.rs
@@ -17,7 +17,6 @@ use deno_graph::ModuleGraphError;
use deno_graph::ModuleLoadError;
use deno_graph::ResolutionError;
use import_map::ImportMapError;
-use std::fmt::Write;
fn get_import_map_error_class(_: &ImportMapError) -> &'static str {
"URIError"
@@ -112,17 +111,5 @@ pub fn get_error_class_name(e: &AnyError) -> &'static str {
e.downcast_ref::<ResolutionError>()
.map(get_resolution_error_class)
})
- .unwrap_or_else(|| {
- if cfg!(debug) {
- log::warn!(
- "Error '{}' contains boxed error of unknown type:{}",
- e,
- e.chain().fold(String::new(), |mut output, e| {
- let _ = write!(output, "\n {e:?}");
- output
- })
- );
- }
- "Error"
- })
+ .unwrap_or("Error")
}