encapsulates the error message construction into an function that can be passed in an option param
tests custom messageBuilder
Merge pull request #214 from itoche/master

Configurable message creation