Skip to content

Commit

Permalink
console error
Browse files Browse the repository at this point in the history
  • Loading branch information
0neSe7en committed Sep 5, 2017
1 parent f40a921 commit af1332b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function nativeMd5(command, fileName, regex) {
return calcMd5(fileName);
}
}).catch(err => {
console.error(err);
console.error('Error:', err);
return calcMd5(fileName);
})
}
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const md5 = require('./index');
md5('/Users/wsy/dev/node/node-native-md5/node_modules/execa/index.js').then(res => {
md5('./index.js').then(res => {
console.log(res);
})

0 comments on commit af1332b

Please sign in to comment.