Fix a bug when analyzing an SVG with a syntax error

This commit is contained in:
Gaël Métais
2016-07-15 11:36:31 +08:00
parent c20cacac99
commit 796ee5516f
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -219,7 +219,9 @@ var ImageOptimizer = function() {
})
.catch(function(err) {
deferred.reject(file);
debug('Optimisation failed:');
debug(err);
deferred.resolve();
});
return deferred.promise;