deno
c5627428 - feat(permission): separate PermissionDeniedError to Retryable and Fatal (#27282)

Commit
1 year ago
feat(permission): separate PermissionDeniedError to Retryable and Fatal (#27282) This commit separates `PermissionDeniedError` into two kinds; `Retryable` and `Fatal`. The existing `PermissionDeniedError`s fall into `Retryable`, since permission errors can be resolved by retrying with proper permissions in Deno CLI. The motivation of adding `Fatal` is that in some environments some operations are just disabled; for instance, in Deno Deploy, any write operations to filesystem can never be granted, in which case `Fatal` kind becomes useful. Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Author
Parents
Loading