make sure  is set to the error