1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Allow reaper to die if initial state can't be loaded.

This commit is contained in:
Simo Kinnunen 2015-08-04 19:08:16 +09:00
parent 77e8d6c2dc
commit 85067b6f0b

View file

@ -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()
})
}