Skip to content

Commit 66595a8

Browse files
fix: JSON stringify doesn't actually work on an error it seems
1 parent ca4da43 commit 66595a8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

components/webFeatures.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -706,13 +706,10 @@ webFeaturesRouter.post(
706706
} else {
707707
log(
708708
LogLevel.DEBUG,
709-
`Failed to sync official data: ${JSON.stringify(error)}.`,
709+
`Failed to sync official data: ${error}.`,
710710
"progressionTransfer",
711711
)
712-
formErrorMessage(
713-
res,
714-
`Failed to sync official data: got ${JSON.stringify(error)}.`,
715-
)
712+
formErrorMessage(res, `Failed to sync official data: ${error}.`)
716713
return
717714
}
718715
}

0 commit comments

Comments
 (0)