Fix wrong error message.
Merge branch 'hotfix/0.6.2'