summaryrefslogtreecommitdiff
path: root/runtime/errors.rs
diff options
context:
space:
mode:
authorLeo K <crowlkats@toaxl.com>2021-08-10 00:28:17 +0200
committerGitHub <noreply@github.com>2021-08-10 00:28:17 +0200
commit2db381eba9768acf855219ec9560e20a62659994 (patch)
treec06a693b804c9a2bc3bf76f7ac66a02f57499ccb /runtime/errors.rs
parent7600a456dfc880a1eeff230f3f34c87978fedc58 (diff)
feat: add experimental WebSocketStream API (#10365)
This commit adds the experimental WebSocketStream API when using the --unstable flag. The explainer for the API can be found here: https://github.com/ricea/websocketstream-explainer
Diffstat (limited to 'runtime/errors.rs')
-rw-r--r--runtime/errors.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/errors.rs b/runtime/errors.rs
index f773be58d..db14bd8bf 100644
--- a/runtime/errors.rs
+++ b/runtime/errors.rs
@@ -159,6 +159,8 @@ pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> {
.or_else(|| deno_webgpu::error::get_error_class_name(e))
.or_else(|| deno_web::get_error_class_name(e))
.or_else(|| deno_webstorage::get_not_supported_error_class_name(e))
+ .or_else(|| deno_websocket::get_network_error_class_name(e))
+ .or_else(|| deno_websocket::get_abort_error_class_name(e))
.or_else(|| {
e.downcast_ref::<dlopen::Error>()
.map(get_dlopen_error_class)