Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaley committed Jan 10, 2025
1 parent ccbd39c commit a74ed36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/testUtils/emailService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const createEmailService = () => {
async () => {
const res = await fetcher(url);
const json = (await res.json()) as InboxFilterResponse;
if ('error' in json) {
if ('message' in json) {
throw new Error(`Mailsac API Error: ${json.error} - ${json.message}`);
}
throw new Error(Object.keys(json).join(', '));
Expand Down

0 comments on commit a74ed36

Please sign in to comment.