From b2036a4db71afd67a78f932528143fb07faea538 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 16 Nov 2021 09:02:28 -0500 Subject: refactor: re-export anyhow from deno_core (#12777) --- core/error_codes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/error_codes.rs') 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::() .map(|e| match e.raw_os_error() { -- cgit v1.2.3