fixed var name
Merge pull request #4 from bevacqua/master

e is undefined, use err instead