Skip to content

Error handling propagation issue #69

@totorototo

Description

@totorototo

there is something fishy in the chain saga, service, helper.

  • services are in charge of:

    • formatting data to be passed to an helper,
    • calling helpers,
    • formatting returned data from that helper.
  • helpers are generally based promise,

  • this is exactly the same for services.

the problem is:

  • what if an helper reject a promise?
  • how is that handled in services?

PS:
Be aware of what is the return value of .then(): resolve or failure.
Considering the returned value of .then() in both case, we have done something wrong here!
🇿🇲

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions