messageGenerator function

Produce a message for the output of a checkFunction