Improve the exception message in import stage