(#3171) - make sure error.message is always a string