Fix tryAddMount usage

This commit is contained in:
Girish Ramakrishnan
2021-06-21 22:37:32 -07:00
parent 3ba2f96d51
commit ceddabd691
4 changed files with 20 additions and 21 deletions
+1 -1
View File
@@ -163,6 +163,6 @@ async function tryAddMount(volume, options) {
const status = await getStatus(volume.mountType, volume.hostPath);
if (status.state !== 'active') { // cleanup
await removeMount(volume);
throw new BoxError(BoxError.MOUNT_ERROR, `Mount is not active (${status.state}): ${status.message}`);
throw new BoxError(BoxError.MOUNT_ERROR, `Failed to mount (${status.state}): ${status.message}`);
}
}