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

Improved HTTP feedback with error logging #32

Merged
merged 2 commits into from
Nov 20, 2017

Conversation

thealexbaron
Copy link
Contributor

No description provided.

lib/cache.js Outdated
@@ -38,6 +38,7 @@ const cacheReleaseList = async url => {
const { status, body } = await fetch(url, { headers })

if (status !== 200) {
console.log(`expected status 200 but received ${status} from ${url}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please make the first letter big here

lib/cache.js Outdated
@@ -71,6 +72,7 @@ exports.refreshCache = async () => {
const response = await fetch(url, { headers })

if (response.status !== 200) {
console.log(`expected status 200 but received ${response.status} from ${url}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@thealexbaron
Copy link
Contributor Author

Made requested changes. Thanks for reviewing.

@leo leo changed the title improve http feedback Improved HTTP feedback with error logging Nov 20, 2017
@leo leo merged commit df11b3b into vercel:master Nov 20, 2017
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