Fix crash when querying backup mount status

This commit is contained in:
Girish Ramakrishnan
2023-05-15 10:32:39 +02:00
parent 94eb7849fe
commit 506d3adf70
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -374,6 +374,8 @@ async function getMountStatus() {
hostPath = backupConfig.mountPoint;
} else if (backupConfig.provider === 'filesystem') {
hostPath = backupConfig.backupFolder;
} else {
throw new BoxError(BoxError.BAD_STATE, 'Backup location is not a mount');
}
return await mounts.getStatus(backupConfig.provider, hostPath); // { state, message }