Skip to content

Commit

Permalink
return data
Browse files Browse the repository at this point in the history
  • Loading branch information
Megapixel99 committed Jan 17, 2024
1 parent 6df1b8e commit c8ba5ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/execution/internal/query-executioner.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function enrichQueryObject(connection, queryParam, client) {
}

function executeQuery(connection, queryObject, client) {
return client._query(connection, queryObject).catch((err) => {
return client._query(connection, queryObject)
.then((result) => result)
.catch((err) => {
if (client.config && client.config.compileSqlOnError === false) {
err.message = queryObject.sql + ' - ' + err.message;
} else {
Expand Down

1 comment on commit c8ba5ba

@Megapixel99
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure if this change was actually needed but it does make the code a bit more readable in my opinion.

Please sign in to comment.