소스 검색

Fix a bug when analyzing an SVG with a syntax error (#184)

Gaël Métais 9 년 전
부모
커밋
357158db3e
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      lib/tools/redownload/imageOptimizer.js
  2. 1 1
      package.json

+ 3 - 1
lib/tools/redownload/imageOptimizer.js

@@ -219,7 +219,9 @@ var ImageOptimizer = function() {
         })
 
         .catch(function(err) {
-            deferred.reject(file);
+            debug('Optimisation failed:');
+            debug(err);
+            deferred.resolve();
         });
 
         return deferred.promise;

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "yellowlabtools",
-  "version": "1.11.0",
+  "version": "1.11.1",
   "description": "Online tool to audit a webpage for performance and front-end quality issues",
   "license": "GPL-2.0",
   "author": {