Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.catch(error => {
const message = getApiErrorMessage(error);
updateErrorMessage(dispatch, message);
KernelActions.fetchingKernel(dispatch, false);
return Q.reject({ error: true, message: message });
});
};
.catch(error => {
updateInputProperties(dispatch, getState, {
inputSchemaFile: '{}'
});
fetchingInputSchema(dispatch, false);
const message = getApiErrorMessage(error);
return Q.reject({ error: true, message: message });
});
};
.catch(error => {
const message = getApiErrorMessage(error);
return Q.reject({ error: true, message: message });
});
};
.catch(error => {
this.setState({
isDeleting: false,
showConfirmationDialog: false,
showMessageBar: true,
messageBarIsError: true,
messageBarStatement: getApiErrorMessage(error)
});
});
}
const rejectWithMessage = (error, msg) =>
Q.reject({
error: true,
message: msg + getApiErrorMessage(error)
});
.catch(error => {
const message = getApiErrorMessage(error);
updateErrorMessage(dispatch, message);
fetchingKernel(dispatch, false);
return Q.reject({ error: true, message: message });
});
};
.catch(error => {
const message = getApiErrorMessage(error);
return Q.reject({
error: true,
message: `There was an issue saving the Flow. Please fix following error then save again: ${message}`
});
});
};
this.props.onGetProducts().catch(error => {
const message = getApiErrorMessage(error);
this.setState({
errorMessage: message
});
});
}
.catch(error => {
const message = getApiErrorMessage(error);
this.setState({
errorMessage: message,
showMessageBar: true
});
});
}
.catch(error => {
this.setState({ error: JSON.stringify({ Error: getApiErrorMessage(error) }) });
});
}