diff --git a/lib/BrickMapMixin.js b/lib/BrickMapMixin.js index 4ef2dcd..fb11ee2 100644 --- a/lib/BrickMapMixin.js +++ b/lib/BrickMapMixin.js @@ -370,10 +370,10 @@ const BrickMapMixin = { barPath = pskPath.normalize(barPath); const childNode = this.getDeepestNode(barPath); if (!childNode) { - throw new Error(`Unable to delete <${barPath}>. File or directory not found.`); + return; } if (this.nodeIsDeleted(childNode)) { - throw new Error(`Unable to delete <${barPath}>. File or directory already deleted.`); + return; } this.deleteNode(childNode);