Skip to content

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

Merged
kkaefer merged 1 commit into
release-tequilafrom
backport-tequila-9073-partially-revert-9025
Dec 11, 2019
Merged

kkaefer merged 1 commit into
release-tequilafrom
backport-tequila-9073-partially-revert-9025

Conversation

@kkaefer

@kkaefer kkaefer commented Dec 11, 2019

Copy link
Copy Markdown
Member

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