fix: don't rethrow exception
can't catch it there pal! crashes the server
This commit is contained in:
parent
7e0025cfac
commit
a680ff9120
1 changed files with 0 additions and 1 deletions
1
index.js
1
index.js
|
|
@ -158,7 +158,6 @@ function bootstrapWebsocketHandler(route) {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const error = e.stack ? `${e}\n\n${e.stack}` : `${e}`;
|
const error = e.stack ? `${e}\n\n${e.stack}` : `${e}`;
|
||||||
model.createLog(db, route.structure_id, route.id, error, true);
|
model.createLog(db, route.structure_id, route.id, error, true);
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
model.updateRoute(db, { ...route, error: null });
|
model.updateRoute(db, { ...route, error: null });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue