cases: correct after #18816

I changed an error messages and fixed a minor bug while implementing
this proposal, which led to a few compile error cases failing.
e1d8187028mlugg committed on 3/6/2024, 9:26:38 PMparente043fe4
3 files changedLine totals unavailable