diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 4736c28c0..7d89e508e 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -1388,7 +1388,14 @@ exports.newHttpInterface = function newHttpInterface() { project, folder, fileName - ) + ).catch(err => { + let error = { + result: 'Fail Because', + message: err + } + respondWithContent(JSON.stringify(error), httpResponse) + return + }) respondWithContent(response, httpResponse) diff --git a/Projects/Foundations/CL/Utilities/Plugins.js b/Projects/Foundations/CL/Utilities/Plugins.js index 7a639c1bc..bc149c038 100644 --- a/Projects/Foundations/CL/Utilities/Plugins.js +++ b/Projects/Foundations/CL/Utilities/Plugins.js @@ -38,7 +38,7 @@ exports.newFoundationsUtilitiesPlugins = function () { function onFileRead(err, file) { if (err) { console.log('[WARN] getPluginFileContent -> File not Found -> Path = ' + path) - reject() + reject('File not Found') return } resolve(file.toString()) diff --git a/Projects/Governance/Plugins/Workspaces/Token-Distribution-Superalgos.json b/Projects/Governance/Plugins/Workspaces/Token-Distribution-Superalgos.json index bdc690cc9..d291f7327 100644 --- a/Projects/Governance/Plugins/Workspaces/Token-Distribution-Superalgos.json +++ b/Projects/Governance/Plugins/Workspaces/Token-Distribution-Superalgos.json @@ -1214,34 +1214,6 @@ "isRunning": false } } - }, - { - "type": "Plugin File", - "name": "test", - "config": "{\"project\":\"Governance\",\"fileName\":\"test\",\"folderName\":\"User-Profiles\",\"nodeType\":\"User Profile\",\"saveWithWorkspace\":true}", - "project": "Foundations", - "id": "752c1c55-e983-4ead-a52c-4193015469fc", - "savedPayload": { - "position": { - "x": 35572.314597728066, - "y": 10724.773136533244 - }, - "targetPosition": { - "x": 35605.314597728066, - "y": 10678.773136533244 - }, - "floatingObject": { - "isPinned": false, - "isFrozen": false, - "isCollapsed": false, - "angleToParent": 2, - "distanceToParent": 3, - "arrangementStyle": 0 - }, - "uiObject": { - "isRunning": false - } - } } ], "id": "2c899fe9-1335-4e9f-b2d0-45a83e478fd0",