Make error messages from require() more useful