For consistency use err instead of ret variable name