Bug if he doesn't found a file
See original GitHub issueHi, I have a simple task but gulp bug when he doesn’t found any file with .png :
gulp.task('tasks0', ['task'], function(){
return gulp.src('app/assets/img/upload/other/*.{png,jpg,jpeg}')
.pipe(responsive({
// produce multiple images from one source
'*.jpg':
{
width: 720,
withoutEnlargement:false,
progressive: true,
quality:70
},
'*.png':
{
width: 720,
progressive:true,
compressionLevel : 7,
withoutEnlargement:true
},
'*':
{
width: 720,
progressive:true,
withoutEnlargement:false
}
}))
.pipe(gulp.dest('app/assets/img/upload/other/'));
}
);
Regards Quentin
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
File is "moved or deleted" or "cannot be found" error when you ...
File is "moved or deleted" or "cannot be found" error when you download PDF files in Internet Explorer 11 in Windows - Microsoft...
Read more >How to Fix the "Item Not Found" Windows Error When Deleting ...
It happens when, even though the file or folder is there, Windows says that it is failing to delete it because it can't...
Read more >Suppress FORFILES "no files found" error - Stack Overflow
The issue is that the script returns an error code and prints "ERROR: No files found with the specified search criteria" if it...
Read more >Python FileNotFoundError: [Errno 2] No such file or directory ...
This error is usually raised when you use the os library. You will see an IOError if you try to read or write...
Read more >Types Of File Preview Errors And How To Handle Them
What happened: If you're seeing the error message [file type] files can't be previewed, it's because Dropbox doesn't recognize the file type ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @lstanard
You may try another options: https://github.com/mahnunchik/gulp-responsive#options
@mahnunchik - I tried both the
errorOnUnusedConfig
andsilent
options but neither seemed to fix the issue.I ended up adding an error handler and that at least catches the error so it doesn’t kill the process completely.