Correct an expected exception type.

After timotimo++ fixed things to throw the correct one.