question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Direct path (non-glob) .src streams should fail on file not found

See original GitHub issue

Example: https://gist.github.com/anonymous/9774298

If it isn’t a glob it should probably fail if the file isn’t found.

Reported by heyladies via IRC

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:3
  • Comments:43 (28 by maintainers)

github_iconTop GitHub Comments

5reactions
henriknorbergcommented, Aug 21, 2014

As a temporary hack, you can fs.statSync the files before you gulp.src 'em:

function statAll(files) {
  files.forEach(fs.statSync) //will trow an error if file not found
}
5reactions
yocontracommented, Mar 27, 2014

@stu-salsbury It’s misleading to have something like gulp.src('file.js').pipe(uglify()).pipe(gulp.dest('folder')) do nothing but say everything is okay. Technically it makes sense but from a user perspective it didn’t do what they told it to do.

Also, disregard my thoughts about directories.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - src/ file path not found - Stack Overflow
I want to save a serializable object into the src/ folder. File file ...
Read more >
Troubleshoot Total Connect Data Streams - Salesforce Help
A mandatory field is missing in your data stream. Two scenarios can cause the Missing Field error. A column is missing from the...
Read more >
could not close the output stream for file
I'm using PhpStorm to develop my online website and using FTP Synchronization for that. everything was good but unfortunately now when i...
Read more >
tiny_httpd 0.12 · OCaml Packages
Streams are used to represent a series of bytes that can arrive progressively. For example, an uploaded file will be sent as a...
Read more >
.checkpoint.tmp file not found in a Kafka Streams application
I just realized this isn't the root cause, at least I think. 2017-06-30 14:06:16 ERROR [StreamThread-2] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found