mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
rename Deno.Err -> Deno.errors (#4093)
This commit is contained in:
parent
db59705595
commit
e1687c0a46
42 changed files with 137 additions and 137 deletions
|
@ -27,7 +27,7 @@ testPerm({ net: true }, async function fetchConnectionError(): Promise<void> {
|
|||
} catch (err_) {
|
||||
err = err_;
|
||||
}
|
||||
assert(err instanceof Deno.Err.Http);
|
||||
assert(err instanceof Deno.errors.Http);
|
||||
assertStrContains(err.message, "error trying to connect");
|
||||
});
|
||||
|
||||
|
@ -44,7 +44,7 @@ test(async function fetchPerm(): Promise<void> {
|
|||
} catch (err_) {
|
||||
err = err_;
|
||||
}
|
||||
assert(err instanceof Deno.Err.PermissionDenied);
|
||||
assert(err instanceof Deno.errors.PermissionDenied);
|
||||
assertEquals(err.name, "PermissionDenied");
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue