Fix argument inversion in error case reporting.

It was a bit of code that was never exercised because it was in
an error case, so it only manifested when the error case was
actually triggered for the first time.