distinguish loading errors from module errors

see with --debug