rework fix in82599d37e1 to use should-error macro