Fix a bug when analyzing an SVG with a syntax error
This commit is contained in:
@@ -219,7 +219,9 @@ var ImageOptimizer = function() {
|
||||
})
|
||||
|
||||
.catch(function(err) {
|
||||
deferred.reject(file);
|
||||
debug('Optimisation failed:');
|
||||
debug(err);
|
||||
deferred.resolve();
|
||||
});
|
||||
|
||||
return deferred.promise;
|
||||
|
||||
Reference in New Issue
Block a user