use paramaterized return values.

So 
    (err error)
    err = foo
    return