Change the way in which error case is being handled.