fixed error message
Merge pull request #241 from ajstanley/6.x

fixed error message