Added setting of errors to Loader.