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:
1 parent
8f59afeaa7
commit
5e96f6fa77
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user