Skip to content

Commit

Permalink
revert only picking up the 1st line of error
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 23, 2024
1 parent 19b9ce8 commit e20267b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ export function handleClientError(
if (!originError || !isError(originError)) {
// If it's not an error, format the args into an error
const formattedErrorMessage = formatConsoleArgs(consoleErrorArgs)
const firstLineOfMessage =
formattedErrorMessage.split('\n')[0] || formattedErrorMessage
error = createUnhandledError(firstLineOfMessage)
error = createUnhandledError(formattedErrorMessage)
} else {
error = originError
}
Expand Down

0 comments on commit e20267b

Please sign in to comment.