Page MenuHomePhabricator

Clean up `catch (ConduitException $ex)` in Diffusion
Closed, ResolvedPublic

Description

For proxied repositories, this may actually be a ConduitClientException. We should make the stack throw a consistent exception, but likely also reduce the reliance of Diffusion on catching these.

Event Timeline

epriestley raised the priority of this task from to Normal.
epriestley updated the task description. (Show Details)
epriestley added a project: Phacility.
epriestley added a subscriber: epriestley.
  • I think we should make callConduitWithDiffusionRequest() always throw ConduitClientException (never ConduitException), I guess?
  • But maybe look through callsites and see if they can all be removed like D11646. Since calls have a nontrivial cost now, it's better if we can avoid making calls that will fail. If they can, we could ignore the exception inconsistency.

D11789 ended up taking care of all of these.