Skip to content

workflow

Michael Kenney edited this page Aug 14, 2018 · 7 revisions
  1. start
    var errs errors.Err
  2. error occurs in come code somewhere
    err := someFunc()
  3. capture and wrap the error to add context
    if nil != err {
        errs = errors.Wrap(err, 0, "the call to someFunc to do some particular work failed")
    }

Clone this wiki locally