Skip to content

Commit

Permalink
Merge pull request #36 from apparelmagic-heath/main
Browse files Browse the repository at this point in the history
Client: Return reason from _handlePromiseError so it can be caught
  • Loading branch information
depyronick authored Jan 29, 2024
2 parents 9c5cd54 + 07a248c commit 7a923e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/ClickHouseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ export class ClickHouseClient {
) {
if (reason && reason.response) {
this.options.logger.error(reason.response.data);
return reason.response.data;
} else {
this.options.logger.error(reason);
return reason;
}
}

Expand Down

0 comments on commit 7a923e2

Please sign in to comment.