Closed leijuns closed 2 years ago
Fix can't listener error event on incorrect file/directory.
Like this:
const watcher = watch('incorrect-some-file-path', function(evt, name) { //do something }); watcher.on('error', () => { //do something });
expose error:
events.js:353 throw er; // Unhandled 'error' event
Thank you for the patch! Would you fix the test?
Fix test case, you can approval it.
Fix can't listener error event on incorrect file/directory.
Like this:
expose error: