Need to return response with failure information for processing response on drupal side.
Case for example:
We send notification to several recipients, some tokens was outdated (because app was removed) - need to determine outdated and remove token from drupal.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | return-response-3013940-2-4.diff | 1.12 KB | r.nabiullin |
| #5 | return-response-3013940-4.patch | 2.96 KB | r.nabiullin |
| #2 | Screenshot 2018-11-15 15.17.15.png | 27.69 KB | r.nabiullin |
| #2 | return-response-3013940-2.patch | 3.39 KB | r.nabiullin |
Comments
Comment #2
r.nabiullin commentedAlso I changed log process, I divided into 2 situations -> when notification has one recipient and multiple, it will more logically, because we not will see error in situation as on screenshot.
Comment #3
andypostit is a bad idea to use messenger in service - better to move it to calling code
Comment #4
andypostAlso that's API break because all consumers of the service expects exception which will not be thrown now
Comment #5
r.nabiullin commentedFixed
Comment #7
leopaccanaro commented