Improve error message.

In some cases, the error is due to another error in the required module, not in the a missing module.