Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit b404014

Browse files
author
ehynds
committed
if a file cannot be found don't continue trying to process it when --force is used
1 parent 9af4d2e commit b404014

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/grunt-image-embed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ module.exports = function(grunt) {
205205
if(!fs.existsSync(img)) {
206206
grunt.fail.warn("File " + img + " does not exist");
207207
complete(null, img, false);
208+
return;
208209
}
209210

210211
grunt.log.writeln("Encoding file: " + img);

0 commit comments

Comments
 (0)