do something with the error