When using the to contain assertion, sometimes the failure message tries to be helpful and shows a best match. Now this best match can be an absolute false positive, not even close to what it was supposed to match.
In these cases seeing what the entire actual output was could be extremely useful.