From 7bfcb4dd10d31f5f9566c90a28449c0951f3a48e Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 10 Sep 2024 20:12:24 +0200 Subject: feat(cli): use NotCapable error for permission errors (#25431) Closes #7394 --------- Co-authored-by: snek --- tests/unit/dir_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/dir_test.ts') diff --git a/tests/unit/dir_test.ts b/tests/unit/dir_test.ts index 4aaadfb12..1e702f549 100644 --- a/tests/unit/dir_test.ts +++ b/tests/unit/dir_test.ts @@ -43,7 +43,7 @@ Deno.test({ permissions: { read: false } }, function dirCwdPermError() { () => { Deno.cwd(); }, - Deno.errors.PermissionDenied, + Deno.errors.NotCapable, "Requires read access to , run again with the --allow-read flag", ); }); -- cgit v1.2.3