Emit better error messages when encountering a compile error. Returns user-readable error along with filename.