Skip to content

Commit

Permalink
Give some indication, in case file listing with fails
Browse files Browse the repository at this point in the history
In case wrench throws an exception during file listing,
this gives some indication, why the file array is empty.
  • Loading branch information
nebulade committed Nov 18, 2013
1 parent f0ed999 commit 84cc3c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/utils/find_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ function findFiles(options)
return 1;
}); // files.filter
} // try
catch (e) {
console.warn(e);
} // catch
finally
{
if( ! files || files.length === 0)
Expand Down

0 comments on commit 84cc3c6

Please sign in to comment.