backups: make test config funcs return error
This commit is contained in:
@@ -202,7 +202,7 @@ async function restore(backupConfig, backupId, version, sysinfoConfig, options,
|
||||
await safe(mounts.tryAddMount(newMount, { timeout: 10 })); // 10 seconds
|
||||
}
|
||||
|
||||
let [error] = await safe(util.promisify(backups.testProviderConfig)(backupConfig));
|
||||
let error = await backups.testProviderConfig(backupConfig);
|
||||
if (error) throw error;
|
||||
|
||||
if ('password' in backupConfig) {
|
||||
|
||||
Reference in New Issue
Block a user