Fix errors not being reported