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

[Compiler Tool] Improve error handling when we can't fetch settings. #298

Merged
merged 3 commits into from
Dec 4, 2019

Conversation

brennan
Copy link
Contributor

@brennan brennan commented Dec 4, 2019

This PR:

  • Improves error messages
  • Only runs yarn install --no-lockfile if the output of git diff --name-only is truthy.

@brennan brennan requested a review from a team as a code owner December 4, 2019 00:43
@@ -19,12 +19,11 @@ async function getSourceSettings(writeKey) {
request.get({ url: url, gzip: true }, (err, _, body) => {
if (err) {
reject(err);
} else if (body && body.includes('Invalid path or write key provided.')) {
console.error('Please make sure your Segment writeKey was entered correctly.')
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fancy. I like it.

@brennan brennan changed the title WIP [Compiler Tool] Improve error handling when we can't fetch settings. [Compiler Tool] Improve error handling when we can't fetch settings. Dec 4, 2019
@brennan brennan merged commit b75cfae into master Dec 4, 2019
@brennan brennan deleted the brennan/compiler branch December 4, 2019 17:54
patrickotoole pushed a commit to rockerbox/analytics.js-integrations that referenced this pull request Feb 27, 2020
…egmentio#298)

* [Compiler Tool] Improve error handling when we can't fetch settings.
marinhero pushed a commit to Wootric/analytics.js-integrations-1 that referenced this pull request Apr 24, 2020
…egmentio#298)

* [Compiler Tool] Improve error handling when we can't fetch settings.
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