throw error in the web API if we encountered errors during the import.