Fix bug in sample code (missing error parameter)
Merge pull request #17 from nathancarter/patch-1

Fix bug in sample code (missing error parameter)