Explorar o código

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

Gaël Métais %!s(int64=9) %!d(string=hai) anos
pai
achega
357158db3e
Modificáronse 2 ficheiros con 4 adicións e 2 borrados
  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) {
         .catch(function(err) {
-            deferred.reject(file);
+            debug('Optimisation failed:');
+            debug(err);
+            deferred.resolve();
         });
         });
 
 
         return deferred.promise;
         return deferred.promise;

+ 1 - 1
package.json

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