output: Make errors, warnings, and notes into a new "message_item".