Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrolistical authored Oct 16, 2023
1 parent dcc5448 commit 7f10385
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose

function queryError(query, err) {
Object.defineProperties(err, {
stack: {value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerate: options.debug},
query: {value: query.string, enumerate: options.debug},
parameters: {value: query.parameters, enumerate: options.debug},
args: {value: query.args, enumerate: options.debug},
types: {value: query.statement && query.statement.types, enumerate: options.debug}
stack: {value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug},
query: {value: query.string, enumerable: options.debug},
parameters: {value: query.parameters, enumerable: options.debug},
args: {value: query.args, enumerable: options.debug},
types: {value: query.statement && query.statement.types, enumerable: options.debug}
})
query.reject(err)
}
Expand Down

0 comments on commit 7f10385

Please sign in to comment.