Fix error message when the key is invalid
Merge pull request #1 from mururu/fix-err-msg

Fix error message for invalid key