summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kubovy <jan.kubovy@bmw.de>2019-10-07 10:27:50 +0200
committerJan Kubovy <jan.kubovy@bmw.de>2019-10-07 12:17:17 +0200
commit5e96f6fa772a105047f11fa143a529c24265f687 (patch)
tree4d8bb13410c0f214a2f96e928bdd37ace3eae1e2
parent8f59afeaa7cb0c3cbb67dbec7836d5d3b63f0f73 (diff)
downloadzuul-5e96f6fa772a105047f11fa143a529c24265f687.tar.gz
Include session expired reason in API fetch error message.
To improve user experience when fetch errors are encountered due to expired sessions, an additional common solution proposal is added here to the error message. Change-Id: If7f8e905969acabd3e66710c519267d86367289d
-rw-r--r--web/src/actions/errors.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/src/actions/errors.js b/web/src/actions/errors.js
index b90369d6b..01a70b77b 100644
--- a/web/src/actions/errors.js
+++ b/web/src/actions/errors.js
@@ -32,7 +32,8 @@ export const addApiError = error => {
d.text = error.response.statusText
d.status = error.response.status
} else {
- d.status = 'Unable to fetch URL, check your network connectivity, browser plugins, and ad-blockers'
+ d.status = 'Unable to fetch URL, check your network connectivity,'
+ + ' browser plugins, ad-blockers, or try to refresh this page'
d.text = error.message
}
return addError(d)