From eb1ad95d66c5f511b74bfa2b484fdcb842eb8e0b Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 15:37:30 +0100 Subject: [PATCH 01/12] This is my contribution to Superalgos --- Client/httpInterface.js | 94 ++++++++++++------- ...s-001-app-error-contribution-not-sent.json | 57 ++++++++++- ...ds-errors-003-app-error-update-failed.json | 4 +- .../UI/Spaces/Docs-Space/CommandInterface.js | 9 +- 4 files changed, 125 insertions(+), 39 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 3b00911b9..c871fc884 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -599,12 +599,34 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE contribute() async function contribute() { - if (await doGit() === false) { - respondWithContent(JSON.stringify(global.DEFAULT_FAIL_RESPONSE), httpResponse) + let error + error = await doGit() + if (error !== undefined) { + + let docs = { + project: 'Superalgos', + category: 'Topic', + type: 'App Error - Contribution Not Sent', + anchor: undefined, + placeholder: {} + } + + respondWithDocsObject(docs, result.error) return } - if (await doGithub() === false) { - respondWithContent(JSON.stringify(global.DEFAULT_FAIL_RESPONSE), httpResponse) + + error = await doGithub() + if (error !== undefined) { + + let docs = { + project: 'Superalgos', + category: 'Topic', + type: 'App Error - Contribution Not Sent', + anchor: undefined, + placeholder: {} + } + + respondWithDocsObject(docs, result.error) return } respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) @@ -623,14 +645,13 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE await git.add('./*') await git.commit(commitMessage) await git.push('origin', currentBranch) - return true } catch (err) { console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> Method call produced an error.') console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> err.stack = ' + err.stack) console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> commitMessage = ' + commitMessage) console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> currentBranch = ' + currentBranch) console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> contributionsBranch = ' + contributionsBranch) - return false + return err } } @@ -657,10 +678,9 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE head, base, }); - return true } catch (err) { if (err.stack.indexOf('A pull request already exists') >= 0) { - return true + return } else { console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> Method call produced an error.') console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> err.stack = ' + err.stack) @@ -670,7 +690,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> currentBranch = ' + currentBranch) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> contributionsBranch = ' + contributionsBranch) - return false + return err } } } @@ -713,35 +733,12 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE project: 'Superalgos', category: 'Topic', type: 'App Error - Update Failed', - anchor: 'Anchor Update Failed', + anchor: undefined, placeholder: {} } - if (result.error.message !== undefined) { - docs.placeholder.errorMessage = { - style: 'Error', - text: result.error.message - } - } - if (result.error.stack !== undefined) { - docs.placeholder.errorStack = { - style: 'Javascript', - text: result.error.stack - } - } - if (result.error.code !== undefined) { - docs.placeholder.errorCode = { - style: 'Json', - text: result.error.code - } - } + respondWithDocsObject(docs, result.error) - let customResponse = { - result: global.CUSTOM_FAIL_RESPONSE.result, - docs: docs - } - - respondWithContent(JSON.stringify(customResponse), httpResponse) } } @@ -831,6 +828,35 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE } break } + + function respondWithDocsObject(docs, error) { + + if (error.message !== undefined) { + docs.placeholder.errorMessage = { + style: 'Error', + text: error.message + } + } + if (error.stack !== undefined) { + docs.placeholder.errorStack = { + style: 'Javascript', + text: error.stack + } + } + if (error.code !== undefined) { + docs.placeholder.errorCode = { + style: 'Json', + text: error.code + } + } + + let customResponse = { + result: global.CUSTOM_FAIL_RESPONSE.result, + docs: docs + } + + respondWithContent(JSON.stringify(customResponse), httpResponse) + } } } break diff --git a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json index 7a4401674..c9d083363 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json @@ -9,8 +9,61 @@ "paragraphs": [ { "style": "Text", - "text": "Check for the Client's console for details on what may have happened. After you fix the issue that prevented the App Contribute Command to run, you may try again.", - "updated": 1611129009743 + "text": "Check the following section for details on what may have happened. After you fix the issue that prevented the App Contribute Command to run, you may try again.", + "updated": 1611152997869 + }, + { + "style": "Title", + "text": "Error Details" + }, + { + "style": "Text", + "text": "In the following section you will find the specific information received when this error occured." + }, + { + "style": "Note", + "text": "You will only see it if you opened this page as a result of the error actually happening.", + "updated": 1611153032408 + }, + { + "style": "Subtitle", + "text": "Error Message" + }, + { + "style": "Text", + "text": "The following is the Error Message of the Exception that occured at the Client:" + }, + { + "style": "Placeholder", + "text": "errorMessage" + }, + { + "style": "Subtitle", + "text": "Error Stack" + }, + { + "style": "Text", + "text": "The following is the Error Stack of the Exception that occured at the Client:" + }, + { + "style": "Placeholder", + "text": "errorStack" + }, + { + "style": "Subtitle", + "text": "Error Code" + }, + { + "style": "Text", + "text": "The follwing is the Error Code of the Exception that occured at the Client:" + }, + { + "style": "Placeholder", + "text": "errorCode" + }, + { + "style": "Text", + "text": "" } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-003-app-error-update-failed.json b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-003-app-error-update-failed.json index d76237dc6..55523747f 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-003-app-error-update-failed.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-003-app-error-update-failed.json @@ -9,8 +9,8 @@ "paragraphs": [ { "style": "Success", - "text": "Check for the Client's console for details on what may have happened. After you fix the issue, you may try again.", - "updated": 1611129360143 + "text": "Check for the following section for details on what may have happened. After you fix the issue, you may try again.", + "updated": 1611152967185 }, { "style": "Title", diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js b/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js index 3d462383b..cf63a0021 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js @@ -82,7 +82,14 @@ function newSuperalgosDocsCommmandInterface() { if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result && data.result === GLOBAL.DEFAULT_OK_RESPONSE.result) { UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Message - Contribution Done') } else { - UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error - Contribution Not Sent', 'Anchor Contribution Not Sent') + UI.projects.superalgos.spaces.docsSpace.navigateTo( + data.docs.project, + data.docs.category, + data.docs.type, + data.docs.anchor, + undefined, + data.docs.placeholder + ) } } } From 3a3bc2ae1b6d7c213b951141a67a711dc9949d20 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 15:42:11 +0100 Subject: [PATCH 02/12] This is my contribution to Superalgos --- Client/httpInterface.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index c871fc884..04bd72e57 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -595,12 +595,12 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE const token = unescape(requestParameters[5]) const currentBranch = unescape(requestParameters[6]) const contributionsBranch = unescape(requestParameters[7]) + let error contribute() async function contribute() { - let error - error = await doGit() + await doGit() if (error !== undefined) { let docs = { @@ -614,8 +614,8 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE respondWithDocsObject(docs, result.error) return } - - error = await doGithub() + + await doGithub() if (error !== undefined) { let docs = { @@ -651,7 +651,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> commitMessage = ' + commitMessage) console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> currentBranch = ' + currentBranch) console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> contributionsBranch = ' + contributionsBranch) - return err + error = err } } @@ -690,7 +690,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> currentBranch = ' + currentBranch) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> contributionsBranch = ' + contributionsBranch) - return err + error = err } } } From 7b1d6272706b002c9b97b31685231c64aae28788 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 15:44:13 +0100 Subject: [PATCH 03/12] This is my contribution to Superalgos --- Client/httpInterface.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 04bd72e57..050927e9f 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -690,7 +690,9 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> currentBranch = ' + currentBranch) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> contributionsBranch = ' + contributionsBranch) - error = err + console.log('error ' ,error) + console.log('err', err) + // error = err } } } From 086db81331c2a54c9b53111cc6bc08f489f3fb0c Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 15:47:36 +0100 Subject: [PATCH 04/12] This is my contribution to Superalgos --- Client/httpInterface.js | 58 ++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 050927e9f..6125513cf 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -625,7 +625,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE anchor: undefined, placeholder: {} } - + console.log('respond with docs ') respondWithDocsObject(docs, result.error) return } @@ -690,9 +690,9 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> currentBranch = ' + currentBranch) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> contributionsBranch = ' + contributionsBranch) - console.log('error ' ,error) + console.log('error ', error) console.log('err', err) - // error = err + error = err } } } @@ -830,35 +830,35 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE } break } + } - function respondWithDocsObject(docs, error) { + function respondWithDocsObject(docs, error) { - if (error.message !== undefined) { - docs.placeholder.errorMessage = { - style: 'Error', - text: error.message - } - } - if (error.stack !== undefined) { - docs.placeholder.errorStack = { - style: 'Javascript', - text: error.stack - } - } - if (error.code !== undefined) { - docs.placeholder.errorCode = { - style: 'Json', - text: error.code - } - } - - let customResponse = { - result: global.CUSTOM_FAIL_RESPONSE.result, - docs: docs - } - - respondWithContent(JSON.stringify(customResponse), httpResponse) + if (error.message !== undefined) { + docs.placeholder.errorMessage = { + style: 'Error', + text: error.message } + } + if (error.stack !== undefined) { + docs.placeholder.errorStack = { + style: 'Javascript', + text: error.stack + } + } + if (error.code !== undefined) { + docs.placeholder.errorCode = { + style: 'Json', + text: error.code + } + } + + let customResponse = { + result: global.CUSTOM_FAIL_RESPONSE.result, + docs: docs + } + + respondWithContent(JSON.stringify(customResponse), httpResponse) } } break From f013baaaec898475fe197678bb442cb7784e1613 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 15:48:59 +0100 Subject: [PATCH 05/12] This is my contribution to Superalgos --- Client/httpInterface.js | 45 +++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 6125513cf..a58f3233f 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -834,31 +834,36 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE function respondWithDocsObject(docs, error) { - if (error.message !== undefined) { - docs.placeholder.errorMessage = { - style: 'Error', - text: error.message + try { + if (error.message !== undefined) { + docs.placeholder.errorMessage = { + style: 'Error', + text: error.message + } } - } - if (error.stack !== undefined) { - docs.placeholder.errorStack = { - style: 'Javascript', - text: error.stack + if (error.stack !== undefined) { + docs.placeholder.errorStack = { + style: 'Javascript', + text: error.stack + } } - } - if (error.code !== undefined) { - docs.placeholder.errorCode = { - style: 'Json', - text: error.code + if (error.code !== undefined) { + docs.placeholder.errorCode = { + style: 'Json', + text: error.code + } } + + let customResponse = { + result: global.CUSTOM_FAIL_RESPONSE.result, + docs: docs + } + + respondWithContent(JSON.stringify(customResponse), httpResponse) + } catch(err) { +console.log(err) } - let customResponse = { - result: global.CUSTOM_FAIL_RESPONSE.result, - docs: docs - } - - respondWithContent(JSON.stringify(customResponse), httpResponse) } } break From aed93f3d21b39fd9eb483df7ec3a8e8f683d4d00 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 15:51:26 +0100 Subject: [PATCH 06/12] This is my contribution to Superalgos --- Client/httpInterface.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index a58f3233f..12b9fdfdf 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -611,7 +611,12 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE placeholder: {} } - respondWithDocsObject(docs, result.error) + try { + respondWithDocsObject(docs, result.error) + + } catch (err) { + console.log('new errro ', err) + } return } @@ -715,6 +720,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE } break } + case 'Update': { try { const currentBranch = unescape(requestParameters[3]) @@ -853,15 +859,15 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE text: error.code } } - + let customResponse = { result: global.CUSTOM_FAIL_RESPONSE.result, docs: docs } - + respondWithContent(JSON.stringify(customResponse), httpResponse) - } catch(err) { -console.log(err) + } catch (err) { + console.log(err) } } From 3ca384e94f39dd6b3345b34ecb21c0b6cbf6cb30 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 15:52:10 +0100 Subject: [PATCH 07/12] This is my contribution to Superalgos --- Client/httpInterface.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 12b9fdfdf..5758cb620 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -631,7 +631,12 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE placeholder: {} } console.log('respond with docs ') - respondWithDocsObject(docs, result.error) + try { + respondWithDocsObject(docs, result.error) + + } catch (err) { + console.log('new errro ', err) + } return } respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) From 5d932ec16d391e721173021d003cfdea0b520a60 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 15:53:17 +0100 Subject: [PATCH 08/12] This is my contribution to Superalgos --- Client/httpInterface.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 5758cb620..460e6f907 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -611,12 +611,8 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE placeholder: {} } - try { - respondWithDocsObject(docs, result.error) + respondWithDocsObject(docs, result.error) - } catch (err) { - console.log('new errro ', err) - } return } @@ -632,7 +628,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE } console.log('respond with docs ') try { - respondWithDocsObject(docs, result.error) + respondWithDocsObject(docs, error) } catch (err) { console.log('new errro ', err) From d9ab664a571bcaa769cdfbdec1f6c514c4261983 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 16:01:36 +0100 Subject: [PATCH 09/12] This is my contribution to Superalgos --- Client/httpInterface.js | 62 +++++++++---------- ...s-001-app-error-contribution-not-sent.json | 18 +++++- ...ds-errors-003-app-error-update-failed.json | 19 +++++- 3 files changed, 65 insertions(+), 34 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 460e6f907..5dc84c54e 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -627,12 +627,9 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE placeholder: {} } console.log('respond with docs ') - try { - respondWithDocsObject(docs, error) - } catch (err) { - console.log('new errro ', err) - } + respondWithDocsObject(docs, error) + return } respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) @@ -841,35 +838,36 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE function respondWithDocsObject(docs, error) { - try { - if (error.message !== undefined) { - docs.placeholder.errorMessage = { - style: 'Error', - text: error.message - } + if (error.message !== undefined) { + docs.placeholder.errorMessage = { + style: 'Error', + text: error.message } - if (error.stack !== undefined) { - docs.placeholder.errorStack = { - style: 'Javascript', - text: error.stack - } - } - if (error.code !== undefined) { - docs.placeholder.errorCode = { - style: 'Json', - text: error.code - } - } - - let customResponse = { - result: global.CUSTOM_FAIL_RESPONSE.result, - docs: docs - } - - respondWithContent(JSON.stringify(customResponse), httpResponse) - } catch (err) { - console.log(err) } + if (error.stack !== undefined) { + docs.placeholder.errorStack = { + style: 'Javascript', + text: error.stack + } + } + if (error.code !== undefined) { + docs.placeholder.errorCode = { + style: 'Json', + text: error.code + } + } + + docs.placeholder.errorDetails = { + style: 'Json', + text: JSON.stringify(error) + } + + let customResponse = { + result: global.CUSTOM_FAIL_RESPONSE.result, + docs: docs + } + + respondWithContent(JSON.stringify(customResponse), httpResponse) } } diff --git a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json index c9d083363..8494a6e76 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json @@ -14,7 +14,8 @@ }, { "style": "Title", - "text": "Error Details" + "text": "Error Info", + "updated": 1611154606702 }, { "style": "Text", @@ -61,6 +62,21 @@ "style": "Placeholder", "text": "errorCode" }, + { + "style": "Subtitle", + "text": "Error Details", + "updated": 1611154543778 + }, + { + "style": "Text", + "text": "The follwing are all the Error details of the Exception that occured at the Client:", + "updated": 1611154675224 + }, + { + "style": "Placeholder", + "text": "errorDetails", + "updated": 1611154555419 + }, { "style": "Text", "text": "" diff --git a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-003-app-error-update-failed.json b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-003-app-error-update-failed.json index 55523747f..797d43d15 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-003-app-error-update-failed.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-003-app-error-update-failed.json @@ -14,7 +14,8 @@ }, { "style": "Title", - "text": "Error Details" + "text": "Error Info", + "updated": 1611154641024 }, { "style": "Text", @@ -63,6 +64,22 @@ { "style": "Placeholder", "text": "errorCode" + }, + { + "style": "Subtitle", + "text": "Error Details" + }, + { + "style": "Text", + "text": "The follwing are all the Error details of the Exception that occured at the Client:" + }, + { + "style": "Placeholder", + "text": "errorDetails" + }, + { + "style": "Text", + "text": "" } ] } \ No newline at end of file From d910a83a30c7e361b5d394d416b331cc5f584e80 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 16:03:10 +0100 Subject: [PATCH 10/12] This is my contribution to Superalgos --- Client/httpInterface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 5dc84c54e..6b6dbebe1 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -867,7 +867,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE docs: docs } - respondWithContent(JSON.stringify(customResponse), httpResponse) + respondWithContent(JSON.stringify(customResponse, undefined, 4), httpResponse) } } From ab595e6e315bad54e83adab0dcaf3bf9342f1c0f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 16:05:29 +0100 Subject: [PATCH 11/12] This is my contribution to Superalgos --- Client/httpInterface.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 6b6dbebe1..f34afddc1 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -859,7 +859,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE docs.placeholder.errorDetails = { style: 'Json', - text: JSON.stringify(error) + text: JSON.stringify(error, undefined, 4) } let customResponse = { @@ -867,7 +867,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE docs: docs } - respondWithContent(JSON.stringify(customResponse, undefined, 4), httpResponse) + respondWithContent(JSON.stringify(customResponse), httpResponse) } } From b6056f0d2efbd3141fefe90800960ddc8ee759c1 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Jan 2021 16:08:24 +0100 Subject: [PATCH 12/12] This is my contribution to Superalgos --- Client/httpInterface.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index f34afddc1..abe8f07af 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -693,8 +693,6 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> currentBranch = ' + currentBranch) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> contributionsBranch = ' + contributionsBranch) - console.log('error ', error) - console.log('err', err) error = err } }