summaryrefslogtreecommitdiff
path: root/src/mongo/scripting
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2017-04-27 13:38:11 +0000
committerKevin Pulo <kevin.pulo@mongodb.com>2017-05-04 12:53:11 +1000
commit4b76e2cd5a49a64d0ba9789d800b61de90032274 (patch)
tree6c2f77679d57dc36dd5c019a135a0251562886a1 /src/mongo/scripting
parent7bf2b92e75e1eed72454d1dc1984711516a43ce1 (diff)
downloadmongo-4b76e2cd5a49a64d0ba9789d800b61de90032274.tar.gz
SERVER-28665 More informative message when JS execution is interrupted
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r--src/mongo/scripting/mozjs/implscope.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/implscope.cpp b/src/mongo/scripting/mozjs/implscope.cpp
index 1b5ddcd8892..921bd8e3e55 100644
--- a/src/mongo/scripting/mozjs/implscope.cpp
+++ b/src/mongo/scripting/mozjs/implscope.cpp
@@ -221,7 +221,7 @@ bool MozJSImplScope::_interruptCallback(JSContext* cx) {
if (scope->_hasOutOfMemoryException) {
scope->_status = Status(ErrorCodes::JSInterpreterFailure, "Out of memory");
} else if (scope->isKillPending()) {
- scope->_status = Status(ErrorCodes::Interrupted, "Interrupted by the host");
+ scope->_status = Status(ErrorCodes::Interrupted, "JavaScript execution interrupted");
}
// If we are on the right thread, in the middle of an operation, and we have a registered opCtx,
// then we should check the opCtx for interrupts.