summaryrefslogtreecommitdiff
path: root/core/error_codes.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-11-16 09:02:28 -0500
committerGitHub <noreply@github.com>2021-11-16 09:02:28 -0500
commitb2036a4db71afd67a78f932528143fb07faea538 (patch)
treea78612e8868609af7aa6fe9ecf49d3ab0c42c9da /core/error_codes.rs
parentf9f9ddc5e308809343bbf5c07d4487df5a1b93cf (diff)
refactor: re-export anyhow from deno_core (#12777)
Diffstat (limited to 'core/error_codes.rs')
-rw-r--r--core/error_codes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/error_codes.rs b/core/error_codes.rs
index fc613426f..43a6c4391 100644
--- a/core/error_codes.rs
+++ b/core/error_codes.rs
@@ -1,6 +1,6 @@
-use crate::error::AnyError;
+use anyhow::Error;
-pub(crate) fn get_error_code(err: &AnyError) -> Option<&'static str> {
+pub(crate) fn get_error_code(err: &Error) -> Option<&'static str> {
err
.downcast_ref::<std::io::Error>()
.map(|e| match e.raw_os_error() {