Better managing of err.warning