From 44511e4f330e2d7099a16ed836629fa73dde9831 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Thu, 4 Nov 2021 16:44:34 +0100 Subject: feat(runtime): give OS errors .code attributes (#12591) This adds `.code` attributes to errors returned by the op-layer, facilitating classifying OS errors and helping node-compat. Similar to Node, these `.code` attributes are stringified names of unix ERRNOs, the mapping tables are generated by [tools/codegen_error_codes.js](https://gist.github.com/AaronO/dfa1106cc6c7e2a6ebe4dba9d5248858) and derived from libuv and rust's std internals --- runtime/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 60f11d703..fd09a9bc3 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -69,7 +69,7 @@ fs3 = "0.5.0" http = "0.2.4" hyper = { version = "0.14.12", features = ["server", "stream", "http1", "http2", "runtime"] } lazy_static = "1.4.0" -libc = "0.2.101" +libc = "0.2.106" log = "0.4.14" notify = "=5.0.0-pre.12" regex = "1.5.4" -- cgit v1.2.3