add more detailed error if metadata import fails