pass debug for safe call

This commit is contained in:
Girish Ramakrishnan
2021-09-29 20:15:54 -07:00
parent d43209e655
commit ae4a091261
+2 -1
View File
@@ -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}`);