mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
Log error from oauth redirect.
This commit is contained in:
parent
d08ed9b52b
commit
5998a6c1b4
@ -366,18 +366,17 @@ ipcRenderer.on(MSFT_OPCODE.REPLY_LOGIN, (_, ...arguments_) => {
|
|||||||
// Error from request to Microsoft.
|
// Error from request to Microsoft.
|
||||||
if (Object.prototype.hasOwnProperty.call(queryMap, 'error')) {
|
if (Object.prototype.hasOwnProperty.call(queryMap, 'error')) {
|
||||||
switchView(getCurrentView(), viewOnClose, 500, 500, () => {
|
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
|
let errorDesc = queryMap.error_description
|
||||||
title = error
|
|
||||||
description = errorDesc
|
|
||||||
if (error === 'access_denied') {
|
|
||||||
// TODO Write custom error messages.
|
|
||||||
title = error
|
|
||||||
description = errorDesc
|
|
||||||
}
|
|
||||||
setOverlayContent(
|
setOverlayContent(
|
||||||
title,
|
error,
|
||||||
description,
|
errorDesc,
|
||||||
'OK'
|
'OK'
|
||||||
)
|
)
|
||||||
setOverlayHandler(() => {
|
setOverlayHandler(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user