From 85067b6f0bfaa641ea4fc271b3442c233b4b55e3 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Tue, 4 Aug 2015 19:08:16 +0900 Subject: [PATCH] Allow reaper to die if initial state can't be loaded. --- lib/units/reaper/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/units/reaper/index.js b/lib/units/reaper/index.js index 5a7c1d9b..cff1dbe0 100644 --- a/lib/units/reaper/index.js +++ b/lib/units/reaper/index.js @@ -119,5 +119,8 @@ module.exports = function(options) { ttlset.stop() }) - loadInitialState().then(listenToChanges) + loadInitialState().then(listenToChanges).catch(function(err) { + log.fatal('Unable to load initial state', err) + lifecycle.fatal() + }) }