bugfix: fixed an incorrect error message. thanks doujiang for the patch in #373.