SI-7690 ghost error message fails compile

I won't even try to explain the error reporting code, because
it would have no basis in reality. However this change appears
to fix the symptom reported.
Merge pull request #2804 from adriaanm/rebase-2763

SI-7690 ghost error message fails compile [Rebase of #2763]