MCPcopy Create free account
hub / github.com/linuxfoundation/crowd.dev / selectErrorMessage

Function selectErrorMessage

frontend/src/shared/error/errors.js:26–34  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

24}
25
26function selectErrorMessage(error) {
27 const key = selectErrorKeyOrMessage(error);
28
29 if (i18nExists(key)) {
30 return i18n(key);
31 }
32
33 return key;
34}
35
36function selectErrorCode(error) {
37 if (error && error.response && error.response.status) {

Callers 3

handleMethod · 0.85
selectMessageMethod · 0.85
showMessageMethod · 0.85

Calls 3

i18nExistsFunction · 0.90
i18nFunction · 0.90
selectErrorKeyOrMessageFunction · 0.85

Tested by

no test coverage detected