Check that err is not equal to the no error case, instead of that it is 0.

It's better to use the interface values in case they change in the future under
the covers.