Bug Fixed when a plugin file is not found.

This commit is contained in:
Luis Fernando Molina committed 2021-08-26 11:23:28 +02:00
1 parent 3f2871acea
commit 5da911fe0f
3 files changed
+9 -30

No files matched your search

+8 -1
View File
@@ -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)
+1 -1
View File
@@ -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())
@@ -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",