From 057e0d193230acaa2bab94aeca17c2660a117acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 4 Jun 2018 12:45:16 +0200 Subject: [PATCH] Http codes 3xx are not an error --- buildtools/check-example.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/check-example.js b/buildtools/check-example.js index d8063961a3b9..ef2d75d2bb6b 100644 --- a/buildtools/check-example.js +++ b/buildtools/check-example.js @@ -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; }