From 6984b63f2f3c8d0819fe2dced8252a81f3400ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 16 Dec 2020 17:14:12 +0100 Subject: refactor: rewrite ops to use ResourceTable2 (#8512) This commit migrates all ops to use new resource table and "AsyncRefCell". Old implementation of resource table was completely removed and all code referencing it was updated to use new system. --- runtime/errors.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/errors.rs') diff --git a/runtime/errors.rs b/runtime/errors.rs index f8f71a859..f82d95ed8 100644 --- a/runtime/errors.rs +++ b/runtime/errors.rs @@ -168,6 +168,12 @@ pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> { e.downcast_ref::() .map(get_dlopen_error_class) }) + .or_else(|| { + e.downcast_ref::().map(|e| { + let io_err: io::Error = e.to_owned().into(); + get_io_error_class(&io_err) + }) + }) .or_else(|| { e.downcast_ref::() .map(get_env_var_error_class) -- cgit v1.2.3