Fixed typo

`error` -> `err`
Merge pull request #5 from markandrus/patch-1

Fixed typo