Added an alert for errors