Skip to content

Commit

Permalink
chore(crwrsca): Fix TS issue in error.ts (#11105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jul 26, 2024
1 parent 12cc255 commit 9d08558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-redwood-rsc-app/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function handleError(e: unknown) {
}
} else {
console.log()
if ('message' in e) {
if (typeof e === 'object' && e !== null && 'message' in e) {
console.error('🚨 An error occurred:')
console.error(e)
} else {
Expand Down

0 comments on commit 9d08558

Please sign in to comment.