Skip to content

Commit

Permalink
Improved error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuval Naveh committed Nov 4, 2019
1 parent bdf1603 commit 464ffca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const glob = require('glob');

/**
* Returns all files matching the wild card
* @param {*} filenameWildcard filename wildcard
* Returns all files matching the wild card pattern
* @param {*} filenameWildcard filename wildcard pattern
*/
const getMatchingfiles = (filenameWildcard) => {
return new Promise((resolve, reject) => {
glob(filenameWildcard, (err, files) => {
if (err) {
console.log(err);
console.log(`Failed getting filenames, error = ${err}`);

reject(err);
} else {
Expand Down

0 comments on commit 464ffca

Please sign in to comment.