Fix loading of errors on synchronous build