Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tequila backport: Fix validation error messages in the browser #9093

Merged

Conversation

kkaefer
Copy link
Member

@kkaefer kkaefer commented Dec 11, 2019

Backports #9073 to release-tequila


We converted the ParsingError and ValidationError classes to inherit from the built-in Error class in #9025. This works fine in ES6, so our unit tests were happy. However, transpiling it down to ES5 leads to an absence of the message property, essentially removing the text of parsing and validation errors.

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Custom_Error_Types for a discussion of Error inheritance.

Needs backport to 1.6

We converted the ParsingError and ValidationError classes to inherit from the built-in Error class in #9025. This works fine in ES6, so our unit tests were happy. However, transpiling it down to ES5 leads to an absence of the message property, essentially removing the text of parsing and validation errors.
@kkaefer kkaefer requested a review from mourner December 11, 2019 10:11
@kkaefer kkaefer merged commit cfb63ae into release-tequila Dec 11, 2019
@kkaefer kkaefer deleted the backport-tequila-9073-partially-revert-9025 branch December 11, 2019 12:26
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.

2 participants