summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/engine.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-01 14:47:28 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-16 16:28:02 -0400
commit5a1b0681dcee481f631dc647000b895e20cc7cfd (patch)
tree57b1d42d0eb94750d3855cba6886700776022d31 /src/mongo/scripting/engine.cpp
parentc593ea7bb9815ced064ad8aa7ffa206fa94757c4 (diff)
downloadmongo-5a1b0681dcee481f631dc647000b895e20cc7cfd.tar.gz
SERVER-30580 Eliminate DBException::getCode() in favor of code()
Diffstat (limited to 'src/mongo/scripting/engine.cpp')
-rw-r--r--src/mongo/scripting/engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/scripting/engine.cpp b/src/mongo/scripting/engine.cpp
index 02bd0f21bb8..69b680efe5a 100644
--- a/src/mongo/scripting/engine.cpp
+++ b/src/mongo/scripting/engine.cpp
@@ -249,7 +249,7 @@ void Scope::loadStored(OperationContext* opCtx, bool ignoreNotConnected) {
thisTime.insert(n.valuestr());
_storedNames.insert(n.valuestr());
} catch (const DBException& setElemEx) {
- if (setElemEx.getCode() == ErrorCodes::Interrupted) {
+ if (setElemEx.code() == ErrorCodes::Interrupted) {
throw;
}