Fix wrong error logging
Merge pull request #1752 from djmadcat/development

Fix wrong error logging (probably copy-paste error)