Use idiomatic err, not error

This also helps avoid confusing compiler errors by not shadowing a core
type