Skip to content

Commit

Permalink
fix: improve errors from webhook endpoints (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Gautreau authored Jun 1, 2023
1 parent 6a717d4 commit 7e4f11f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default async function executeWebhook<S extends TSchema = TSchema>(
if ((e as ResponseError).response) {
return {
type: 'Error',
message: `Error received from the server: ${e.status} ${e.message}.`,
message: `Error received from the webhook endpoint: ${e.status} ${e.message}.`,
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ describe('Services > ModelCustomizations > WebhookExecutor', () => {

expect(result).toEqual({
type: 'Error',
message: 'Error received from the server: 400 Bad request.',
message: 'Error received from the webhook endpoint: 400 Bad request.',
});
});
});
Expand Down

0 comments on commit 7e4f11f

Please sign in to comment.