Skip to content

fix: add error handler for sqlite3 spawn to prevent process crash - #25

Open
aneeskodappana wants to merge 1 commit into
srthkdev:mainfrom
aneeskodappana:main
Open

fix: add error handler for sqlite3 spawn to prevent process crash#25
aneeskodappana wants to merge 1 commit into
srthkdev:mainfrom
aneeskodappana:main

Conversation

@aneeskodappana

Copy link
Copy Markdown

When sqlite3 CLI is not installed, spawn() throws an error that was previously unhandled, crashing the entire MCP server process. This adds a proc.on('error') handler to gracefully catch the error and reject the promise with a meaningful error message instead.

Summary

Changes

Related Issues

Checklist

  • Tests pass locally
  • Linting passes
  • Documentation updated (if needed)
  • Breaking changes documented

When sqlite3 CLI is not installed, spawn() throws an error that was
previously unhandled, crashing the entire MCP server process. This adds
a proc.on('error') handler to gracefully catch the error and reject the
promise with a meaningful error message instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant