Fix bad err reference
Merge pull request #14 from rolandpoulter/fix-err

Fix bad err reference