Skip to content

Commit 1bb8522

Browse files
committed
Do not throw error in unmount
1 parent ce61d4e commit 1bb8522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fuse/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class FuseManager extends EventEmitter {
335335
await ensureFuse()
336336
const self = this
337337

338-
if (!this._rootMnt) throw new Error('Cannot unmount if the root drive is not mounted.')
338+
if (!this._rootMnt) return
339339

340340
// If a mountpoint is not specified, then it is assumed to be the root mount.
341341
if (!mnt) return unmountRoot()

0 commit comments

Comments
 (0)