Skip to content

[Tools] Throw FailError with code context on babel/parser exception#22810

Merged
maryia-lapata merged 2 commits intoelastic:masterfrom
LeanidShutau:fix/i18n-unhandled-error-output
Sep 13, 2018
Merged

[Tools] Throw FailError with code context on babel/parser exception#22810
maryia-lapata merged 2 commits intoelastic:masterfrom
LeanidShutau:fix/i18n-unhandled-error-output

Conversation

@LeanidShutau
Copy link
Copy Markdown
Contributor

@babel/parser syntax errors should be described on throwing them to console.

@LeanidShutau LeanidShutau added Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Project:i18n v6.5.0 labels Sep 7, 2018
@LeanidShutau LeanidShutau self-assigned this Sep 7, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@LeanidShutau
Copy link
Copy Markdown
Contributor Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@LeanidShutau
Copy link
Copy Markdown
Contributor Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@pavel06081991 pavel06081991 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

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

LGTM, tested on JS, html and pug file, worked as expected, just one nit.

}

/**
* @param {string} content
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: please add a detailed description here so that it is clear what this function does

@maryia-lapata maryia-lapata removed their request for review September 11, 2018 11:29
@elastic elastic deleted a comment from elasticmachine Sep 11, 2018
@elastic elastic deleted a comment from elasticmachine Sep 11, 2018
@pavel06081991
Copy link
Copy Markdown
Contributor

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@maryia-lapata maryia-lapata merged commit 974e234 into elastic:master Sep 13, 2018
@maryia-lapata maryia-lapata deleted the fix/i18n-unhandled-error-output branch September 13, 2018 10:11
maryia-lapata pushed a commit to maryia-lapata/kibana that referenced this pull request Sep 13, 2018
…lastic#22810)

* [Tools] Throw FailError with code context on babel/parser exception

* Add description for createParserErrorMessage function
maryia-lapata added a commit that referenced this pull request Sep 13, 2018
…22810) (#22992)

* [Tools] Throw FailError with code context on babel/parser exception

* Add description for createParserErrorMessage function
@LeanidShutau
Copy link
Copy Markdown
Contributor Author

6.x/6.5: 0a44c3f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported Project:i18n Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v6.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants