Fix message content when throwing exception.