error and warning report more consistent