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