Skip to content

Commit

Permalink
added piping exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinDashinsky committed Mar 11, 2018
1 parent 986cff9 commit 29e1232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spawnGPG.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ module.exports.streaming = function(options, args, cb) {
}

// Pipe input file into gpg stdin; gpg stdout into output file..
sourceStream.pipe(gpg.stdin);
gpg.stdout.pipe(destStream);
sourceStream.pipe(gpg.stdin).on('error', cb);
gpg.stdout.pipe(destStream).on('error', cb);
};

// Wrapper around spawn. Catches error events and passed global args.
Expand Down

0 comments on commit 29e1232

Please sign in to comment.