From 196729eb8d42ca2933c2daa44cc57be7f5e56396 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 13 Jan 2021 13:19:59 +0100 Subject: [PATCH] Update httpInterface.js --- Client/httpInterface.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 1e535f377..456a73fd8 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -657,8 +657,10 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE let result = await doGit() if (result === true) { + console.log(true) respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) } else { + console.log(false) respondWithContent(JSON.stringify(global.FAIL_OK_RESPONSE), httpResponse) } } @@ -671,10 +673,11 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE maxConcurrentProcesses: 6, } const git = simpleGit(options) - console.log('checkout ' + currentBranch) try { await git.checkoutBranch(currentBranch) } catch (err) { + console.log('[ERROR] Error changing current branch to ' + currentBranch + err.stack) + console.log(err.stack) return false } return true