varwonkiness fix
Merge pull request #2164 from Pomax/bug2163

removed unused variable, renamed error data.