declare error variable.

missed declaration of error
Merge pull request #6 from amunter/issue161

declare error variable.