Not a good idea to assert against error messages. A trade-off would be to assert on the error keys present.