summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils_launcher.cpp
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2015-06-18 20:23:45 -0400
committerAdam Midvidy <amidvidy@gmail.com>2015-06-22 18:22:48 -0400
commitdfed23f6c712a0e6b49a2545595d039599d2a30c (patch)
tree66378dfdd7db4a6bbe0f3850f532ffad64c93b83 /src/mongo/shell/shell_utils_launcher.cpp
parenta31cd95dd35acc8ee755b6dcf0ff23e75616d59b (diff)
downloadmongo-dfed23f6c712a0e6b49a2545595d039599d2a30c.tar.gz
SERVER-19045 don't throw non-exceptions
Diffstat (limited to 'src/mongo/shell/shell_utils_launcher.cpp')
-rw-r--r--src/mongo/shell/shell_utils_launcher.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/shell/shell_utils_launcher.cpp b/src/mongo/shell/shell_utils_launcher.cpp
index 36d8416d33a..9d9ed7a5f95 100644
--- a/src/mongo/shell/shell_utils_launcher.cpp
+++ b/src/mongo/shell/shell_utils_launcher.cpp
@@ -180,8 +180,7 @@ void goingAwaySoon() {
void ProgramOutputMultiplexer::appendLine(int port, ProcessId pid, const char* line) {
stdx::lock_guard<stdx::mutex> lk(mongoProgramOutputMutex);
- if (mongo::dbexitCalled)
- throw "program is terminating";
+ uassert(28689, "program is terminating", !mongo::dbexitCalled);
stringstream buf;
if (port > 0)
buf << " m" << port << "| " << line;