Fix regression in error reporting