Skip to content

Commit

Permalink
fix: include body in error
Browse files Browse the repository at this point in the history
  • Loading branch information
SkeLLLa committed Jul 17, 2024
1 parent e169cb7 commit 72d41aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/broker/broker-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class PinotClient implements IPinotClient {
first: response.resultTable?.rows?.slice(0, 3),
last: response.resultTable?.rows?.slice(-3),
sql,
queryOptions: PinotClient.toQueryOptions(options),
queryOptions,
},
});
}
Expand Down
1 change: 1 addition & 0 deletions src/client/broker/transport/json/undici.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class PinotBrokerJSONTransport implements IPinotBrokerTransport {

const response = await this.pool.request(reqOptions).catch((err: Error) => {
throw new PinotError({
data: { body },
message: `Pinot transport error: ${err.message}`,
type: EPinotErrorType.TRANSPORT,
cause: err,
Expand Down

0 comments on commit 72d41aa

Please sign in to comment.