Log errors to console in dev mode

This commit is contained in:
Chris Wanstrath 2026-03-11 15:21:34 -07:00
parent 8e45bd1d0c
commit f84786fb0e

View File

@ -106,6 +106,8 @@ export class Hype<
this.onError((err, c) => { this.onError((err, c) => {
const isDev = process.env.NODE_ENV !== 'production' const isDev = process.env.NODE_ENV !== 'production'
if (isDev) console.error(err)
return c.html( return c.html(
`<!DOCTYPE html> `<!DOCTYPE html>
<html> <html>