From f84786fb0edbe996feb4cf2db4cf2387fece7048 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 11 Mar 2026 15:21:34 -0700 Subject: [PATCH] Log errors to console in dev mode --- src/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 2945bc5..1039cd1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -106,6 +106,8 @@ export class Hype< this.onError((err, c) => { const isDev = process.env.NODE_ENV !== 'production' + if (isDev) console.error(err) + return c.html( `