Skip to content

Commit

Permalink
chore(xapi/_assertHealthyVdiChain): clearer warnings in case of missi…
Browse files Browse the repository at this point in the history
…ng VDI
  • Loading branch information
julien-f committed Dec 28, 2021
1 parent 5bc4436 commit d307134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @xen-orchestra/xapi/src/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = class Vm {
try {
vdi = await this[vdiRefOrUuid.startsWith('OpaqueRef:') ? 'getRecord' : 'getRecordByUuid']('VDI', vdiRefOrUuid)
} catch (error) {
warn(error)
warn('_assertHealthyVdiChain, could not fetch VDI', { error })
return
}
cache[vdi.$ref] = vdi
Expand All @@ -81,7 +81,7 @@ module.exports = class Vm {
try {
vdi = await this.getRecord('VDI', vdiRef)
} catch (error) {
warn(error)
warn('_assertHealthyVdiChain, could not fetch VDI', { error })
return
}
cache[vdiRef] = vdi
Expand Down

0 comments on commit d307134

Please sign in to comment.