diff options
Diffstat (limited to 'src/mongo/db/commands/eval.cpp')
-rw-r--r-- | src/mongo/db/commands/eval.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/eval.cpp b/src/mongo/db/commands/eval.cpp index b4860f561e4..9abc1a285f2 100644 --- a/src/mongo/db/commands/eval.cpp +++ b/src/mongo/db/commands/eval.cpp @@ -207,7 +207,7 @@ public: OldClientContext ctx(opCtx, dbname, false /* no shard version checking here */); return dbEval(opCtx, dbname, cmdObj, result, errmsg); - } catch (const UserException& ex) { + } catch (const AssertionException& ex) { // Convert a stale shardVersion error to a stronger error to prevent this node or the // sending node from believing it needs to refresh its routing table. if (ex.code() == ErrorCodes::RecvStaleConfig) { |