Improved error and warning reporting
sync