mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-18 16:17:28 +00:00
Merge pull request #1161 from balena-io/roman/errors
Add steps info to applyState error message
This commit is contained in:
commit
7e51d63380
@ -440,6 +440,9 @@ module.exports = class DeviceState extends EventEmitter
|
||||
.delay(nextDelay)
|
||||
.then =>
|
||||
@applyTarget({ force, initial, intermediate, skipLock, nextDelay, retryCount })
|
||||
.catch (err) =>
|
||||
detailedError = new Error('Failed to apply state transition steps. ' + err.message + ' Steps:' + JSON.stringify(_.map(steps, 'action')))
|
||||
@applyError(detailedError, { force, initial, intermediate })
|
||||
.catch (err) =>
|
||||
@applyError(err, { force, initial, intermediate })
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user