Skip to content

Deno v2.0 Deno.errors.PermissionDenied -> Deno.errors.NotCapable #491

@elmeunick9

Description

@elmeunick9

The new version of Deno introduces some changes to the permission system, see.

Notably the introduction of Deno.errors.NotCapable breaks createParams here.

try {
    pgEnv = getPgEnv(); 
} catch (e) {
    if (e instanceof Deno.errors.PermissionDenied) {
        has_env_access = false;
    } else {
        throw e;
    }
}

I guess for backwards compatibility we should keep both?

  • deno-postgres version: 0.19.3
  • deno version: 2.0-rc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions