Log errors to console in dev mode
This commit is contained in:
parent
8e45bd1d0c
commit
f84786fb0e
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user