bugfix: return after error callback

This commit is contained in:
AJ ONeal 2021-10-18 00:47:06 -06:00
parent ed2bab931f
commit 5f5e0b6066
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ function setDefaults(defs) {
opts.stream = fs.createWriteStream(opts.stream);
} catch (e) {
cb(e);
return;
}
}
// or an existing write stream