Better error and warning reporting.