diff --git a/index.js b/index.js index 98ee823..665deed 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ function nativeMd5(command, fileName, regex) { return calcMd5(fileName); } }).catch(err => { - console.error(err); + console.error('Error:', err); return calcMd5(fileName); }) } diff --git a/test.js b/test.js index eb93434..bd6605c 100644 --- a/test.js +++ b/test.js @@ -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); })