@@ -12,21 +12,29 @@ Vue error tracker keeps track of vue-resource http related errors, and provides
12
12
var VueErrorTracker = require('@deveodk/vue-error-tracker');
13
13
Vue.use(VueErrorTracker, {
14
14
//options are optional.
15
+ AlertHeader: 'Whoops, something went wrong!',
16
+ ErrorCode: 'Error code:',
15
17
OfflineMessage: 'You are offline',
16
18
MessageTimeout: 5000,
17
- Timeout: 'We are experiencing high loads, and therfore we failed to load the resource',
18
- ServerError: 'Something went wrong, please contact the system admin if the problem persist .',
19
+ Timeout: 'We are experiencing high loads, and therefore we failed to load the resource. ',
20
+ ServerError: 'Something went wrong, please contact the system admin if the problem persists .',
19
21
BadGateway: 'You have found a bug, please contact the system admin.',
20
- BadRequest: 'There have been a error, please try to reload the site and try again.',
21
- NotFound: 'You have found a bug, please contact the system admin.',
22
+ BadRequest: 'There have been a error. Please reload the site and try again.',
23
+ NotFound: 'The page was not found. Please contact the system admin.',
22
24
});
23
25
~~~
24
26
25
27
26
28
####Available options
27
29
30
+ ### AlertHeader: ` Whoops, something went wrong! `
31
+ * Set the title of the alert.
32
+
33
+ ### ErrorCode: ` Error code: `
34
+ * Set the equivalent word for errorcode for translations.
35
+
28
36
### OfflineMessage: ` You are offline `
29
- * Set the message when the browser is offline and the user tries to make and request
37
+ * Set the message when the browser is offline and the user tries to make and request.
30
38
31
39
### MessageTimeout: ` 5000 `
32
40
* Set the time between fatal error alerts, ideal if you have many http request which fails.
@@ -35,10 +43,10 @@ Vue error tracker keeps track of vue-resource http related errors, and provides
35
43
* Set the message when a 504 error appears. due to high load.
36
44
37
45
### ServerError: ` Something went wrong, please contact the system admin if the problem persist. `
38
- * Set the message for when a 500 error appears
46
+ * Set the message for when a 500 error appears.
39
47
40
48
### BadGateway: ` You have found a bug, please contact the system admin. `
41
- * Set the message for when a 502 error appears
49
+ * Set the message for when a 502 error appears.
42
50
43
51
### NotFound: ` You have found a bug, please contact the system admin. `
44
52
* Set the message for when a 404 error appear
0 commit comments