Fix tryAddMount usage
This commit is contained in:
+1
-1
@@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user