resp doesn't exist on an error
Merge pull request #10 from smurthas/master

resp is undefined on an error