diff options
| author | Luca Casonato <hello@lcas.dev> | 2024-09-10 20:12:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-10 11:12:24 -0700 |
| commit | 7bfcb4dd10d31f5f9566c90a28449c0951f3a48e (patch) | |
| tree | fca0dec6e98118418f1712c6e8451a04c7e89988 /tests/testdata/test | |
| parent | be5419d479fcae16c8a07dec00ce11b532b7996a (diff) | |
feat(cli): use NotCapable error for permission errors (#25431)
Closes #7394
---------
Co-authored-by: snek <snek@deno.com>
Diffstat (limited to 'tests/testdata/test')
| -rw-r--r-- | tests/testdata/test/allow_none.out | 12 | ||||
| -rw-r--r-- | tests/testdata/test/no_prompt_by_default.out | 2 | ||||
| -rw-r--r-- | tests/testdata/test/no_prompt_with_denied_perms.out | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/testdata/test/allow_none.out b/tests/testdata/test/allow_none.out index aaea9aea3..37ed8548a 100644 --- a/tests/testdata/test/allow_none.out +++ b/tests/testdata/test/allow_none.out @@ -10,27 +10,27 @@ ffi ... FAILED [WILDCARD] ERRORS read => ./test/allow_none.ts:[WILDCARD] -error: PermissionDenied: Can't escalate parent thread permissions +error: NotCapable: Can't escalate parent thread permissions [WILDCARD] write => ./test/allow_none.ts:[WILDCARD] -error: PermissionDenied: Can't escalate parent thread permissions +error: NotCapable: Can't escalate parent thread permissions [WILDCARD] net => ./test/allow_none.ts:[WILDCARD] -error: PermissionDenied: Can't escalate parent thread permissions +error: NotCapable: Can't escalate parent thread permissions [WILDCARD] env => ./test/allow_none.ts:[WILDCARD] -error: PermissionDenied: Can't escalate parent thread permissions +error: NotCapable: Can't escalate parent thread permissions [WILDCARD] run => ./test/allow_none.ts:[WILDCARD] -error: PermissionDenied: Can't escalate parent thread permissions +error: NotCapable: Can't escalate parent thread permissions [WILDCARD] ffi => ./test/allow_none.ts:[WILDCARD] -error: PermissionDenied: Can't escalate parent thread permissions +error: NotCapable: Can't escalate parent thread permissions [WILDCARD] FAILURES diff --git a/tests/testdata/test/no_prompt_by_default.out b/tests/testdata/test/no_prompt_by_default.out index a35e3f7ae..cd40fab53 100644 --- a/tests/testdata/test/no_prompt_by_default.out +++ b/tests/testdata/test/no_prompt_by_default.out @@ -4,7 +4,7 @@ no prompt ... FAILED ([WILDCARD]s) ERRORS no prompt => ./test/no_prompt_by_default.ts:[WILDCARD] -error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag +error: NotCapable: Requires read access to "./some_file.txt", run again with the --allow-read flag [WILDCARD] FAILURES diff --git a/tests/testdata/test/no_prompt_with_denied_perms.out b/tests/testdata/test/no_prompt_with_denied_perms.out index 4293ff1bb..f6c8ec826 100644 --- a/tests/testdata/test/no_prompt_with_denied_perms.out +++ b/tests/testdata/test/no_prompt_with_denied_perms.out @@ -4,7 +4,7 @@ no prompt ... FAILED ([WILDCARD]s) ERRORS no prompt => ./test/no_prompt_with_denied_perms.ts:[WILDCARD] -error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag +error: NotCapable: Requires read access to "./some_file.txt", run again with the --allow-read flag [WILDCARD] FAILURES |
