Skip to content

Commit 0778eec

Browse files
committed
Refine error handling in readme to specify error details
1 parent 1d9aa84 commit 0778eec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ async function sendEmail() {
4343
});
4444

4545
console.log('Email API call successful:', response.message);
46-
} catch (error) {
46+
} catch (error: any) {
4747
console.error('Failed to send email:', error.message);
4848

4949
if (error instanceof PoodleError) {
5050
console.error('Status Code:', error.statusCode);
51-
console.error('Details:', error.details);
51+
console.error('Specific Details:', error.details);
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)