Add required error parameter
Merge pull request #11 from tt/fix-example

Fix example