Skip to content

Commit

Permalink
Http codes 3xx are not an error
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 4, 2018
1 parent 43912ec commit 057e0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtools/check-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ page.onResourceError = function(resourceError) {
console.warn('Ignoring resource error from Google');
} else if (resourceError.url.includes('https://csi.gstatic.com/')) {
console.warn('Ignoring resource error from Google static');
} else if (resourceError.errorCode >= 300) {
} else if (resourceError.errorCode >= 400) {
console.log('Resource error: ' + resourceError.errorCode + ', ' + resourceError.url);
exitCode = 2;
}
Expand Down

0 comments on commit 057e0d1

Please sign in to comment.