Uh oh!
There was an error while loading. Please reload this page.
Avoid hidding exceptions - #26
Conversation
clue
commented
Jun 7, 2015
Thanks for spotting! These could certainly introduce some subtle and hard to trace issues. I'm currently in the process of refactoring quite a bit of the dns component, so I'm considering how I'm going to introduce this. FWIW: These changes only work with the latest Promise API, so we would also have to raise our minimum requirement. |
arnaud-lb
commented
Jun 8, 2015
Thanks. Currently, catching issues in user code is made very hard because of this, as soon as this Just for my information, what kind of issues could this change introduce ?
What are the rules for raising the requirements against a dependency that's also part of reactphp ? Could this be done in a MINOR (i.e. not PATCH) release of react/dns ? |
clue
commented
Sep 7, 2015
After reconsidering this, I'm leaning towards getting your changes in first. After all you've filed your PR first :-) I'll have to resolve a few merge conflicts because I'm looking into introducing quite a bit of new structure, but that's nothing you have to worry about.
This will likely be tackled once it comes to tagging the next release. In this particular case it does not affect the public API, so this will likely end up in a patch release. Can you update the composer.json? Otherwise LGTM 👍 |
jsor
commented
Sep 8, 2015
LGTM 👍 |
clue
commented
Sep 23, 2015
Ping @arnaud-lb, can you update this to require Otherwise LGTM 👍 |
WyriHaximus
commented
Sep 24, 2015
LGTM 👍 |
fdd1fee to
7768ee6Comparearnaud-lb
commented
Dec 31, 2015
@clue@WyriHaximus done! Sorry for the delay, I didn't see the update request at first :) |
cboden
commented
Jan 19, 2016
|
jsor
commented
Jan 19, 2016
Yes, because react/promise |
clue
commented
May 20, 2016
This will also cause a merge conflict with #35. Is this still relevant? |
arnaud-lb
commented
May 23, 2016
@clue Yes it is :) |
02f8163 to
de3b479Comparede3b479 to
90bcf15Comparearnaud-lb
commented
Oct 4, 2016
@clue: I've rebased the PR against master, to fix the conflicts. Also, I've updated the composer requirements (react/promise ~2.2), and removed PHP 5.3 from travis' php targets. |
clue
commented
Sep 12, 2017
@arnaud-lb Thanks for filing this PR, keeping it updated and sparking the discussion! 👍 I'm not opposed to getting this in, but I'm currently unsure about how much value this PR (still) provides. I think the original PR actually addressed a relevant issue of possibly discarding exceptions in the This means that now, the current PR only avoids discarding exceptions in a single location (cache) that never throws exceptions in the first place. To get this PR in, we'd have to sacrifice backwards compatibility with completely outdated versions (which I'm okay with). As an alternative, I would rather address the cache issue in #81 instead, at which point this update is no longer required in the first place. What do you think about this? Every way, again thanks for your contribution! 👍 |
clue
commented
Jun 29, 2018
@arnaud-lb Thank you for working on this! I'm closing this for now as it hasn't received any input in a while and I believe this has been answered. Please come back with more details if this problem persists and we can reopen this 👍+ |
then()catches exceptions, which is not desirable when its result is not returned.When using the RetryExecutor, the exception thrown by the following code is caught, whereas it should not:
The PR fixes this by changing some
thentodone.