Skip to content

Why two exceptions #62

Description

@zcorpan
  if (err.name === 'NotAllowedError') {
    console.log('The user agent did not grant permission to access the file.');
  } else if (err.name === 'NotFoundError') {
    console.log('The file was not found in Cross-Origin Storage.');
  }

It seems like you would expose slightly less information by using NotFoundError for both of these cases.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions