Improve error message when importing.