Add option to use the text value for the error msg
Merge pull request #4 from domness/master

Add option to use the text value for the error msg