We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7765345 commit dac9fcfCopy full SHA for dac9fcf
app/code/Magento/Checkout/view/frontend/web/js/model/error-processor.js
@@ -24,7 +24,13 @@ define([
24
messageContainer = messageContainer || globalMessageList;
25
26
if (response.status == 401) { //eslint-disable-line eqeqeq
27
- this.redirectTo(url.build('customer/account/login/'));
+ error = {
28
+ message: $t('You are not authorized to access this resource.')
29
+ };
30
+ messageContainer.addErrorMessage(error);
31
+ setTimeout(() => {
32
+ this.redirectTo(url.build('customer/account/login/'));
33
+ }, 2000);
34
} else {
35
try {
36
error = JSON.parse(response.responseText);
0 commit comments