datastore: re-phrase error message when datastore is unavailable

the current phrase leads to clumsy log messages such as:

> datastore 'store' is in datastore is being unmounted

this commit re-phrases that too:

> datastore 'store' is unavailable: datastore is being unmounted

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
This commit is contained in:
Shannon Sterz 2024-11-26 14:07:23 +01:00 committed by Thomas Lamprecht
parent 7e1aa4d283
commit 963401348a

View File

@ -218,7 +218,7 @@ impl DataStore {
if let Some(maintenance_mode) = config.get_maintenance_mode() {
if let Err(error) = maintenance_mode.check(operation) {
bail!("datastore '{name}' is in {error}");
bail!("datastore '{name}' is unavailable: {error}");
}
}