Skip to content

Commit 2a2da7e

Browse files
committed
feat: add error reporting for caught exceptions
1 parent bf3f8d9 commit 2a2da7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime/src/templates/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class NetlifyNextServer extends NextServer {
2626
try {
2727
await this.netlifyRevalidate(req.url)
2828
console.log('Revalidated', req.url)
29-
} catch {
29+
} catch (error) {
3030
// TODO: status 500 error refreshing ODB cache
31-
console.log('Error revalidating', req.url)
31+
console.log('Error revalidating', req.url, error)
3232
}
3333
} else {
3434
// TODO: status 400 refresh hooks not enabled for site in proxy

0 commit comments

Comments
 (0)