fix error handling of importer

This never could have worked