Change error reason to match previous behaviour.