mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Express Errors with res.marko API (#1119)
* Emit express errors with res.marko * Switch to using '.on' instead of catch to prevent unhandled promise rejections
This commit is contained in:
parent
38ee375ca3
commit
e2bb09850b
@ -55,7 +55,6 @@ function patchResponse(response) {
|
||||
}
|
||||
|
||||
res.set({ "content-type": "text/html; charset=utf-8" });
|
||||
|
||||
return template.render(data, res);
|
||||
return template.render(data, res).on("error", req.next);
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user