track error and warning messages