MCPcopy Create free account
hub / github.com/chatwoot/chatwoot / throwErrorMessage

Function throwErrorMessage

app/javascript/dashboard/store/utils/api.js:103–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101};
102
103export const throwErrorMessage = error => {
104 const errorMessage = parseAPIErrorResponse(error);
105 throw new Error(errorMessage);
106};
107
108export const parseLinearAPIErrorResponse = (error, defaultMessage) => {
109 const errorData = error.response.data;

Callers 15

registerFunction · 0.90
verifyPasswordTokenFunction · 0.90
setNewPasswordFunction · 0.90
fetchCallsFunction · 0.90
getFunction · 0.90
showFunction · 0.90
updateFunction · 0.90
createFunction · 0.90
deleteFunction · 0.90
searchFunction · 0.90
deleteCompanyAvatarFunction · 0.90
getCompanyContactsFunction · 0.90

Calls 1

parseAPIErrorResponseFunction · 0.85

Tested by 1

errorFnFunction · 0.72