SamVerschueren/listr

Using Observable: reject-first logic makes it impossible to track partially succeeded tasks

RonWang opened this issue · 1 comments

Thanks for this great tool we are happy with most cases! However, when we dig deeper when using Observable with multiple tasks running in parallel, if partial success/failure happens, the context object which is available in resolve cannot be retrieved from the catch part. So is it correct this means context is only working when all_success case happens? It's not usable when any failure happens?

I figured it out: the ListrError class object actually contains the context.

{
  context,
  errors,
  ...
}

Close this issue