Using error notification when code errors