diff --git a/src/mounts.js b/src/mounts.js index 76ea47395..a64d9e70a 100644 --- a/src/mounts.js +++ b/src/mounts.js @@ -11,6 +11,7 @@ exports = module.exports = { const assert = require('assert'), BoxError = require('./boxerror.js'), constants = require('./constants.js'), + debug = require('debug')('box:mounts'), ejs = require('ejs'), fs = require('fs'), path = require('path'), @@ -108,7 +109,7 @@ async function removeMount(mount) { if (constants.TEST) return; - await safe(shell.promises.sudo('removeMount', [ RM_MOUNT_CMD, hostPath ], {})); // ignore any error + await safe(shell.promises.sudo('removeMount', [ RM_MOUNT_CMD, hostPath ], {}), { debug }); // ignore any error if (mountType === 'sshfs') { const keyFilePath = path.join(paths.SSHFS_KEYS_DIR, `id_rsa_${mountOptions.host}`);