-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
I want to handle errors with promises. I have promisified pipe method with bluebird, so my code looks like this
return writerPipe(
mkdirp(csvPath).catch((error) => {
return Promise.reject('error');
})
)
.then(() => {.....
I'm not able to reject or resolve inside mkdrip(it's alternative for createWriteStream).
So actually I want to handle errors for this line and so on.
csvWriter.pipe(fs.createWriteStream(csvPath));
if I could call a callback like this csvWriter.pipe(fs.createWriteStream(csvPath), callback); It would be grat
What can I do? Thanks
Metadata
Metadata
Assignees
Labels
No labels