Fix misleading error message

This optimization reduces debugging time when hitting it by approximately 10 minutes ;-)
Merge pull request #893 from DavidS/patch-1

Fix misleading error message