feat(vhd-lib/merge): augment errors with VHD paths

This commit is contained in:
Julien Fontanet 2022-08-03 16:41:59 +02:00
parent 468250f291
commit e0cab4f937

View File

@ -216,5 +216,13 @@ module.exports.mergeVhd = limitConcurrency(2)(async function merge(
parentHandler.unlink(mergeStatePath).catch(warn)
return mergeState.mergedDataSize
}).catch(error => {
try {
error.childPath = childPath
error.parentPath = parentPath
} finally {
// eslint-disable-next-line no-unsafe-finally
throw error
}
})
})