Skip to content

Commit

Permalink
Throw the error after emitting it to the stream
Browse files Browse the repository at this point in the history
  • Loading branch information
fcmatteo committed Jun 4, 2018
1 parent 04055b5 commit b6eb6d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runner.js
Expand Up @@ -94,6 +94,7 @@ assign(Runner.prototype, {
return runner.client.stream(runner.connection, sql, stream, options)
} catch (e) {
stream.emit('error', e)
throw new Error(e);
}
})

Expand Down

0 comments on commit b6eb6d0

Please sign in to comment.