Skip to content

Commit

Permalink
Merge pull request #460 from sebadob/458-provider-callback-error-message
Browse files Browse the repository at this point in the history
show the full backend error in the UI in case of a provider callback error
  • Loading branch information
sebadob authored Jun 10, 2024
2 parents d2b928a + d7cd937 commit 8041c95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/routes/providers/callback/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
error = t.clientForceMfa;
clientMfaForce = true;
} else {
error = `Uncovered HTTP return status '${res.status}'. This should never happen, please report this bug.`;
let body = await res.json();
error = `HTTP ${res.status}: ${body}`;
}
});
Expand Down

0 comments on commit 8041c95

Please sign in to comment.