From ae4a0912615b10746da5e87414e0a0534bfcb21b Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 29 Sep 2021 20:15:54 -0700 Subject: [PATCH] pass debug for safe call --- src/mounts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}`);