File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,7 @@ define([
14
14
] , function ( $ , mage ) {
15
15
'use strict' ;
16
16
17
- var errorMessages = {
18
- error : $ . mage . __ ( 'HTTP Error' ) ,
19
- abort : $ . mage . __ ( 'The request was aborted by the server' ) ,
20
- timeout : $ . mage . __ ( 'The request timed out' ) ,
21
- parsererror : $ . mage . __ ( 'XML/Json format is bad' )
22
- } ,
23
- bootstrap ;
17
+ var bootstrap ;
24
18
25
19
$ . ajaxSetup ( {
26
20
/*
@@ -84,7 +78,10 @@ define([
84
78
$ ( 'body' ) . notification ( 'clear' )
85
79
. notification ( 'add' , {
86
80
error : true ,
87
- message : errorMessages [ status ] + ' (' + jqXHR . status + ' ' + jqXHR . statusText + ')' ,
81
+ message : $ . mage . __ (
82
+ 'A technical problem with the server created an error. ' +
83
+ 'Try again to continue what you were doing. If the problem persists, try again later.'
84
+ ) ,
88
85
89
86
/**
90
87
* @param {* } message
You can’t perform that action at this time.
0 commit comments