error is undefined. Change to err to match the other examples
Merge pull request #21 from adam-zacharski/master

error is undefined. Change to err to match the other examples