feat(backups/_VmBackup#_callWriters): clearer error message

See xoa-support#3709
This commit is contained in:
Julien Fontanet 2021-05-07 15:35:45 +02:00
parent 8ac17ab6e3
commit 5d32fa36ff

View File

@ -115,7 +115,7 @@ exports.VmBackup = class VmBackup {
}
})
if (writers.size === 0) {
throw new Error('no writers left')
throw new Error('all targets have failed, step: ' + warnMessage)
}
}