From 21bc8be7dfd23b6ae6cce54df3a13ebfe2fa9d09 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Thu, 22 May 2014 15:43:26 -0700 Subject: [PATCH] get error message in 'ps ax' failure case We still want JSON.stringify too because that includes stuff like the exit code. See #2158 --- tools/run-mongo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/run-mongo.js b/tools/run-mongo.js index faf2b6d511..fcb6c43a9c 100644 --- a/tools/run-mongo.js +++ b/tools/run-mongo.js @@ -52,7 +52,8 @@ var findMongoPids = function (appDir, port) { 'ps ax', function (error, stdout, stderr) { if (error) { - fut['throw'](new Error("Couldn't run ps ax: " + JSON.stringify(error))); + fut['throw'](new Error("Couldn't run ps ax: " + JSON.stringify(error) + + "; " + error.message)); return; }