When an error ocurred, give an error message