Use idiomatic err, not error

This also helps avoid confusing compiler errors by not shadowing a core
type
Merge pull request #2 from richo/cleanup/idiomatic_errors

Use idiomatic err, not error