fixup pull#2210 - Change error report timing

https://github.com/D-Programming-Language/dmd/pull/2210/files#r4770526