add more detailed error if metadata import fails
Merge branch 'develop' into 1.x-stable