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/testdata/test/allow_none.out | 12 ++++++------ tests/testdata/test/no_prompt_by_default.out | 2 +- tests/testdata/test/no_prompt_with_denied_perms.out | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/testdata/test') 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 -- cgit v1.2.3