pancsta/asyncmachine-go

feat(machine): AddErr should accept state ctx and extract info for err msgs

pancsta opened this issue · 0 comments

After #135 it's possible to extract time and states from state ctxs. That info should become a part of err msgs.

mach.AddErr(err, Pass(&AT{
  Ctx: ctx,
})
mach.AddErr(err, A{
  "ctx": ctx,
})