allow a function passed as error message