Move the error notification message into a directive and a service.