Correct the wrong error message that was reported in #1288.
Merge pull request #1290 from chrisvest/error-message-fix

Correct the wrong error message that was reported in #1288.