Skip to content

Enhance error handling in ShellCommandExecutor and improve command execution in mongo-buddy#39

Merged
nikoshet merged 1 commit intomainfrom
chore/update-mongodb-stderr-handling
Apr 1, 2026
Merged

Enhance error handling in ShellCommandExecutor and improve command execution in mongo-buddy#39
nikoshet merged 1 commit intomainfrom
chore/update-mongodb-stderr-handling

Conversation

@nikoshet
Copy link
Copy Markdown
Contributor

@nikoshet nikoshet commented Apr 1, 2026

Fix silent failure on mongorestore errors

ShellCommandExecutor now captures stderr alongside stdout and checks the process exit code, returning a Result<(), String> on failure. Previously, errors written to stderr (e.g. error connecting to host) were invisible to the executor, and a non-zero exit code was silently ignored — causing the import to appear successful while restoring nothing.

@nikoshet nikoshet self-assigned this Apr 1, 2026
@nikoshet nikoshet requested a review from a team as a code owner April 1, 2026 10:32
…ecution in MongoDataExporter and MongoDataImporter
@nikoshet nikoshet force-pushed the chore/update-mongodb-stderr-handling branch from 6080196 to f8ac06b Compare April 1, 2026 11:46
@nikoshet nikoshet merged commit 1dba8bd into main Apr 1, 2026
6 checks passed
@nikoshet nikoshet deleted the chore/update-mongodb-stderr-handling branch April 1, 2026 12:15
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