From 5998a6c1b48abcaf2f9cfb144963b74ab4f162c7 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Wed, 9 Feb 2022 21:37:47 -0500 Subject: [PATCH] Log error from oauth redirect. --- app/assets/js/scripts/settings.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/app/assets/js/scripts/settings.js b/app/assets/js/scripts/settings.js index 7250dd37..d673cf48 100644 --- a/app/assets/js/scripts/settings.js +++ b/app/assets/js/scripts/settings.js @@ -366,18 +366,17 @@ ipcRenderer.on(MSFT_OPCODE.REPLY_LOGIN, (_, ...arguments_) => { // Error from request to Microsoft. if (Object.prototype.hasOwnProperty.call(queryMap, 'error')) { switchView(getCurrentView(), viewOnClose, 500, 500, () => { - let error = queryMap.error + // TODO Dont know what these errors are. Just show them I guess. + // This is probably if you messed up the app registration with Azure. + console.log('Error getting authCode, is Azure application registered correctly?') + console.log(error) + console.log(error_description) + console.log('Full query map', queryMap) + let error = queryMap.error // Error might be 'access_denied' ? let errorDesc = queryMap.error_description - title = error - description = errorDesc - if (error === 'access_denied') { - // TODO Write custom error messages. - title = error - description = errorDesc - } setOverlayContent( - title, - description, + error, + errorDesc, 'OK' ) setOverlayHandler(() => {