Skip to content

Commit e8c3af9

Browse files
committed
fix: Show dev server errors in console
1 parent feccdb5 commit e8c3af9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cubejs-server-core/core/DevServer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class DevServer {
4040
try {
4141
await handler(req, res, next);
4242
} catch (e) {
43+
console.error((e.stack || e).toString());
4344
this.cubejsServer.event('Dev Server Error', { error: (e.stack || e).toString() });
4445
res.status(500).json({ error: (e.stack || e).toString() });
4546
}

0 commit comments

Comments
 (0)