MCPcopy
hub / github.com/chartbrew/chartbrew / addError

Function addError

client/src/actions/error.js:5–16  ·  view source on GitHub ↗
(code, message = "Server Error")

Source from the content-addressed store, hash-verified

3export const CLEAN_ERRORS = "CLEAN_ERRORS";
4
5export function addError(code, message = "Server Error") {
6 return (dispatch) => {
7 dispatch({
8 type: ADD_ERROR,
9 error: {
10 pathname: window.location.pathname,
11 code,
12 message,
13 },
14 });
15 };
16}
17
18export function removeError(index) {
19 return (dispatch) => {

Callers 15

getAllProjectsFunction · 0.90
getProjectFunction · 0.90
createProjectFunction · 0.90
updateProjectFunction · 0.90
updateProjectLogoFunction · 0.90
removeProjectFunction · 0.90
getPublicDashboardFunction · 0.90
getDataRequestByDatasetFunction · 0.90
createDataRequestFunction · 0.90
updateDataRequestFunction · 0.90
deleteDataRequestFunction · 0.90
runDataRequestFunction · 0.90

Calls 1

dispatchFunction · 0.50

Tested by

no test coverage detected