Fix crash

This commit is contained in:
Girish Ramakrishnan
2024-02-20 21:43:27 +01:00
parent 3da3ccedcb
commit 54c7757e38
2 changed files with 2 additions and 2 deletions

View File

@@ -257,7 +257,7 @@ async function testConfig(apiConfig) {
}
if (apiConfig.provider === PROVIDER_MOUNTPOINT) {
const [error] = await safe(shell.exec(`mountpoint -q -- ${apiConfig.mountPoint}`, { timeout: 5000 }));
const [error] = await safe(shell.promises.exec('testStorageConfig', `mountpoint -q -- ${apiConfig.mountPoint}`, { timeout: 5000 }));
if (error) throw new BoxError(BoxError.BAD_FIELD, `${apiConfig.mountPoint} is not mounted: ${error.message}`);
}