From e1687c0a4616e90d4bbde42b13a0356a7f6a1e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 24 Feb 2020 15:48:35 -0500 Subject: rename Deno.Err -> Deno.errors (#4093) --- cli/js/chown_test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli/js/chown_test.ts') diff --git a/cli/js/chown_test.ts b/cli/js/chown_test.ts index a1c12860d..61c6b8736 100644 --- a/cli/js/chown_test.ts +++ b/cli/js/chown_test.ts @@ -31,7 +31,7 @@ if (Deno.build.os !== "win") { try { await Deno.chown(filePath, 1000, 1000); } catch (e) { - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } }); @@ -44,7 +44,7 @@ if (Deno.build.os !== "win") { try { Deno.chownSync(filePath, uid, gid); } catch (e) { - assert(e instanceof Deno.Err.NotFound); + assert(e instanceof Deno.errors.NotFound); } } ); @@ -58,7 +58,7 @@ if (Deno.build.os !== "win") { try { await Deno.chown(filePath, uid, gid); } catch (e) { - assert(e instanceof Deno.Err.NotFound); + assert(e instanceof Deno.errors.NotFound); } } ); @@ -74,7 +74,7 @@ if (Deno.build.os !== "win") { // try changing the file's owner to root Deno.chownSync(filePath, 0, 0); } catch (e) { - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } Deno.removeSync(dirPath, { recursive: true }); }); @@ -92,7 +92,7 @@ if (Deno.build.os !== "win") { // try changing the file's owner to root await Deno.chown(filePath, 0, 0); } catch (e) { - assert(e instanceof Deno.Err.PermissionDenied); + assert(e instanceof Deno.errors.PermissionDenied); } await Deno.remove(dirPath, { recursive: true }); }); -- cgit v1.2.3