summaryrefslogtreecommitdiff
path: root/src/mongo/scripting
diff options
context:
space:
mode:
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.