fix function name in exception text
Merge pull request #310 from pscheit/patch-1

fix function name in exception text