Commit 119c33e4 authored by Tobias Steiner's avatar Tobias Steiner
Browse files

Fix errorhandling

parent 8ef5a523
......@@ -130,7 +130,7 @@ kafka.init().then(async () => {
* General error handling
* This has to be done in this callback
*/
app.use((err: any, req: Request, res: Response) => {
app.use((err: any, req: Request, res: Response, next: NextFunction) => {
console.error(err.stack);
res.status(500).send('Something broke!') });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment