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

Polyfill 404 craches app #17

Merged
merged 2 commits into from
Jun 19, 2017
Merged

Conversation

karlAlnebratt
Copy link
Contributor

add try catch to request(polyfill.url)
return empty string if status != 200

Karl Alnebratt added 2 commits November 24, 2015 18:04
 add try catch to request(polyfill.url)
 return empty string if status != 200
@jonathanong
Copy link
Contributor

adding you to the org so you can help maintain it :) thanks

@karlAlnebratt
Copy link
Contributor Author

@jonathanong thanks for adding me to the team.

How do you go about whit pull requests? What is your workflow

}).then(function (js) {
var text;
try {
assert(response.status === 200, polyfill.name + ': ' + response.status);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The real issue here is if a polyfill not returning a 200 then we wont get it.
And that might cause the users code to break further down.
So we need to catch it in some way and alert the user that a polyfill is missing.

@karlAlnebratt karlAlnebratt merged commit 8ce4229 into polyfills:master Jun 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants