Stub for error handling in angular