Some punctuation is lacking, and I'd suggest wording it slightly differently:

    If msg is empty, and the thrown exception has a non-empty msg field, the exception's msg field will be output on test failure.