feat(xo-server/_assertHealthyVdiChains): attach info to error

This commit is contained in:
Julien Fontanet 2019-04-05 15:47:59 +02:00
parent b7cc31c94d
commit d6aa40679b

View File

@ -869,7 +869,13 @@ export default class Xapi extends XapiBase {
_assertHealthyVdiChains(vm) { _assertHealthyVdiChains(vm) {
const cache = { __proto__: null } const cache = { __proto__: null }
forEach(vm.$VBDs, ({ $VDI }) => { forEach(vm.$VBDs, ({ $VDI }) => {
try {
this._assertHealthyVdiChain($VDI, cache) this._assertHealthyVdiChain($VDI, cache)
} catch (error) {
error.VDI = $VDI
error.VM = vm
throw error
}
}) })
} }