Improve module manager error reporting