mirror of
https://github.com/zadam/trilium.git
synced 2025-02-21 21:43:55 +08:00
ignore electron error
This commit is contained in:
parent
c8049f0efe
commit
c646019536
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,11 @@ app.use((req, res, next) => {
|
|||
|
||||
// error handler
|
||||
app.use((err, req, res, next) => {
|
||||
if (err && err.message && err.message.includes("Invalid package")) {
|
||||
// electron 6 outputs a lot of such errors which do not seem important
|
||||
return;
|
||||
}
|
||||
|
||||
log.info(err);
|
||||
|
||||
res.status(err.status || 500);
|
||||
|
|
Loading…
Reference in a new issue