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
This commit is contained in:
Jan Kubovy committed 2019-10-07 12:17:17 +02:00
1 parent 8f59afeaa7
commit 5e96f6fa77
1 file changed
+2 -1
+2 -1
View File
@@ -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)