'getMessage()' function not working in 3.1

Apologies, I guess we talked about this recently and I forgot: