Throw if connection to logs failed.

This commit is contained in:
Slava Kim
2013-05-30 15:07:01 -07:00
parent 808c3c8f28
commit 878ca94a72

View File

@@ -204,6 +204,9 @@ exports.logs = function (options) {
}
});
if (!ok)
throw new Error("Couldn't connect to logs mongodb.");
// XXX make this talk to a separate logReader service instead of
// ultraworld direcly
prettySub(logReader, "logsForApp", [options.app], {