Proper error reporting on errors in files loaded by require()