"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "runtime/errors.rs" between
deno-1.10.3.tar.gz and deno-1.11.0.tar.gz

About: Deno is is a simple, modern and secure runtime for JavaScript and TypeScript that uses the V8 JavaScript engine and is built in Rust.

errors.rs  (deno-1.10.3):errors.rs  (deno-1.11.0)
skipping to change at line 160 skipping to change at line 160
nix::Error::Sys(_) => "Error", nix::Error::Sys(_) => "Error",
nix::Error::InvalidPath => "TypeError", nix::Error::InvalidPath => "TypeError",
nix::Error::InvalidUtf8 => "InvalidData", nix::Error::InvalidUtf8 => "InvalidData",
nix::Error::UnsupportedOperation => unreachable!(), nix::Error::UnsupportedOperation => unreachable!(),
} }
} }
pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> { pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> {
deno_core::error::get_custom_error_class(e) deno_core::error::get_custom_error_class(e)
.or_else(|| deno_webgpu::error::get_error_class_name(e)) .or_else(|| deno_webgpu::error::get_error_class_name(e))
.or_else(|| deno_webstorage::get_quota_exceeded_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_webstorage::get_not_supported_error_class_name(e))
.or_else(|| { .or_else(|| {
e.downcast_ref::<dlopen::Error>() e.downcast_ref::<dlopen::Error>()
.map(get_dlopen_error_class) .map(get_dlopen_error_class)
}) })
.or_else(|| e.downcast_ref::<hyper::Error>().map(get_hyper_error_class)) .or_else(|| e.downcast_ref::<hyper::Error>().map(get_hyper_error_class))
.or_else(|| { .or_else(|| {
e.downcast_ref::<deno_core::Canceled>().map(|e| { e.downcast_ref::<deno_core::Canceled>().map(|e| {
let io_err: io::Error = e.to_owned().into(); let io_err: io::Error = e.to_owned().into();
get_io_error_class(&io_err) get_io_error_class(&io_err)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)