Browse Source

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
tags/3.11.0
Jan Kubovy 4 months ago
parent
commit
5e96f6fa77
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      web/src/actions/errors.js

+ 2
- 1
web/src/actions/errors.js 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)


Loading…
Cancel
Save