Skip to content

Commit

Permalink
Changes to correctly capture error message for replica set connections
Browse files Browse the repository at this point in the history
  • Loading branch information
simsekgokhan committed Feb 13, 2019
1 parent e74d67d commit e1066e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/robomongo/core/mongodb/MongoWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,9 @@ namespace Robomongo
_scriptEngine->init(_isLoadMongoRcJs, replicaSetInfo.primary.toString(),
_connSettings->defaultDatabase());
result = _scriptEngine->exec(event->script, _connSettings->defaultDatabase());
if(result.error())
reply(event->sender(),
new ExecuteScriptResponse(this, EventError(result.errorMessage())));
}
}
else { // single server
Expand Down

0 comments on commit e1066e2

Please sign in to comment.