Commit 03071ef3 authored by Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt Committed by Paul Gascou-Vaillancourt

Log ArkoseLabs init failures

parent 036ee565
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
// If the requests fails with a 404 code, we can fail silently. // If the requests fails with a 404 code, we can fail silently.
// We show a generic error message for any other failure. // We show a generic error message for any other failure.
if (e.response?.status !== 404) { if (e.response?.status !== 404) {
this.handleArkoseLabsFailure(); this.handleArkoseLabsFailure(e);
} }
} finally { } finally {
this.isLoading = false; this.isLoading = false;
...@@ -138,8 +138,9 @@ export default { ...@@ -138,8 +138,9 @@ export default {
this.arkoseToken = response.token; this.arkoseToken = response.token;
this.hideErrors(); this.hideErrors();
}, },
handleArkoseLabsFailure() { handleArkoseLabsFailure(e) {
// TODO - do we get an error object here we can console log? // eslint-disable-next-line no-console, @gitlab/require-i18n-strings
console.error('ArkoseLabs initialization error', e);
this.showArkoseFailure = true; this.showArkoseFailure = true;
}, },
updateSubmitButtonLoading(val) { updateSubmitButtonLoading(val) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment