WIP: Use real errors for the module loader

Feedback wanted