Added an allert if error exists.