display a message on errror