Skip to content

catch-error-name fails when try/catch is inside a promise that is caught #107

@sindresorhus

Description

@sindresorhus

Issuehunt badges

Discovered in sindresorhus/got#347

Failing tests: 9f9a324

The cause is the .catch(err => err); part. If that is removed it correctly errors that e should be named err.

// @SamVerschueren


IssueHunt Summary

fisker fisker has been rewarded.

Backers (Total: $40.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions