Skip to content

Conversation

@sigma-andex
Copy link
Contributor

Description of the change

Add errorWithCause constructor for creating Errors with a cause.

See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Error#rethrowing_an_error_with_a_cause


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

Copy link
Member

@garyb garyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@JordanMartinez
Copy link
Contributor

@sigma-andex can you add the missing semicolon?

@JordanMartinez JordanMartinez merged commit e110d79 into purescript:master Dec 22, 2022
@sigma-andex sigma-andex deleted the add-error-with-cause branch December 22, 2022 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants