We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
This simple patch seems enough:
--- a/test/write.test.js +++ b/test/write.test.js @@ -25,8 +25,7 @@ var dest2 = path.join(__dirname,'tmp', 'aync-copy',name); mkdirp.sync(path.dirname(dest)); mkdirp.sync(path.dirname(dest2)); - mkdirp(path.dirname(dest), function(err) { - if (err) throw err; + mkdirp(path.dirname(dest)).then(() => { if (path.extname(name)) { zf.readFile(name, function(err, buffer) { if (err) throw err; @@ -48,6 +47,8 @@ }); }); } + }).catch( err => { + throw err; }); }); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This simple patch seems enough:
The text was updated successfully, but these errors were encountered: