Followup r81427, actually use the $msg variable