Front-end error handling