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/bench | |
| 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/bench')
| -rw-r--r-- | tests/testdata/bench/allow_none.out | 12 | ||||
| -rw-r--r-- | tests/testdata/bench/no_prompt_by_default.out | 2 | ||||
| -rw-r--r-- | tests/testdata/bench/no_prompt_with_denied_perms.out | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/testdata/bench/allow_none.out b/tests/testdata/bench/allow_none.out index 9499e234a..2a75ab5fd 100644 --- a/tests/testdata/bench/allow_none.out +++ b/tests/testdata/bench/allow_none.out @@ -6,16 +6,16 @@ Runtime | Deno [WILDCARD] ([WILDCARD]) benchmark time/iter (avg) iter/s (min … max) p75 p99 p995 ----------- ----------------------------- --------------------- -------------------------- -read error: PermissionDenied: Can't escalate parent thread permissions +read error: NotCapable: Can't escalate parent thread permissions [WILDCARD] -write error: PermissionDenied: Can't escalate parent thread permissions +write error: NotCapable: Can't escalate parent thread permissions [WILDCARD] -net error: PermissionDenied: Can't escalate parent thread permissions +net error: NotCapable: Can't escalate parent thread permissions [WILDCARD] -env error: PermissionDenied: Can't escalate parent thread permissions +env error: NotCapable: Can't escalate parent thread permissions [WILDCARD] -run error: PermissionDenied: Can't escalate parent thread permissions +run error: NotCapable: Can't escalate parent thread permissions [WILDCARD] -ffi error: PermissionDenied: Can't escalate parent thread permissions +ffi error: NotCapable: Can't escalate parent thread permissions [WILDCARD] error: Bench failed diff --git a/tests/testdata/bench/no_prompt_by_default.out b/tests/testdata/bench/no_prompt_by_default.out index 3a2574e28..d9e83cf25 100644 --- a/tests/testdata/bench/no_prompt_by_default.out +++ b/tests/testdata/bench/no_prompt_by_default.out @@ -5,6 +5,6 @@ Runtime | Deno [WILDCARD] ([WILDCARD]) benchmark time/iter (avg) iter/s (min … max) p75 p99 p995 ----------- ----------------------------- --------------------- -------------------------- -no prompt error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag +no prompt error: NotCapable: Requires read access to "./some_file.txt", run again with the --allow-read flag [WILDCARD] error: Bench failed diff --git a/tests/testdata/bench/no_prompt_with_denied_perms.out b/tests/testdata/bench/no_prompt_with_denied_perms.out index 0d1e41077..81db3068a 100644 --- a/tests/testdata/bench/no_prompt_with_denied_perms.out +++ b/tests/testdata/bench/no_prompt_with_denied_perms.out @@ -5,6 +5,6 @@ Runtime | Deno [WILDCARD] ([WILDCARD]) benchmark time/iter (avg) iter/s (min … max) p75 p99 p995 ----------- ----------------------------- --------------------- -------------------------- -no prompt error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag +no prompt error: NotCapable: Requires read access to "./some_file.txt", run again with the --allow-read flag [WILDCARD] error: Bench failed |
