Improve error reporting when parsing modules

Provide the source exception