Skip to content

Commit 7ec47d1

Browse files
committed
exit process when offset is out of bounds
1 parent 725934d commit 7ec47d1

File tree

3 files changed

+23
-34
lines changed

3 files changed

+23
-34
lines changed

package-lock.json

+19-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"hash-wasm": "^4.9.0",
4040
"lodash": "^4.17.21",
4141
"mocha": "^10.0.0",
42-
"neo4j-driver": "^5.0.1",
42+
"neo4j-driver": "^5.7.0",
4343
"pg": "^8.8.0",
4444
"pm2": "^5.2.0",
4545
"semver-compare": "^1.0.0",

src/middleware/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ export const errorHandler = (
5454
): void => {
5555
console.error(err);
5656
res.status(500).send({ error: { response: err.message } });
57+
if (err.message === "offset is out of bounds") {
58+
process.exit(1);
59+
}
5760
};

0 commit comments

Comments
 (0)