The convention is that error should be the last return value. If the error is not nil, then discard other returned values.