Page MenuHomePhabricator

Diffusion - clean up catching ConduitException
ClosedPublic

Authored by btrahan on Feb 17 2015, 9:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 4, 6:49 PM
Unknown Object (File)
Tue, Apr 30, 11:29 PM
Unknown Object (File)
Sat, Apr 27, 11:20 AM
Unknown Object (File)
Mon, Apr 22, 10:49 PM
Unknown Object (File)
Mon, Apr 15, 10:37 AM
Unknown Object (File)
Mon, Apr 8, 11:19 PM
Unknown Object (File)
Mon, Apr 8, 8:48 AM
Unknown Object (File)
Mon, Apr 8, 8:48 AM
Subscribers

Details

Summary

Ref T7123. Turns out that we might throw ConduitClientException now in proxied scenarios. For all but one callsite remove the try / catch bit and don't issue the call for SVN. For the remaining callsite, also don't issue the call for SVN but keep in the exception logic since its renders a pretty error message in the non-proxied case?

Test Plan

played around with diffusion and things looked okay.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Diffusion - clean up catching ConduitException.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

Nice.

src/applications/diffusion/controller/DiffusionBrowseSearchController.php
86

This one could still potentially pop out as ConduitClientException, right?

This revision is now accepted and ready to land.Feb 17 2015, 9:15 PM
src/applications/diffusion/controller/DiffusionBrowseSearchController.php
86

Yes, in the proxied case.

I wasn't sure how the ConduitClientException gets constructed in terms of the ConduitException its wrapping; maybe this can just getErrorDescription?

In practice, this is just making a little search error that tells you if something is weird on your system, e.g. the vcs grep command failed for some reason. maybe it can just be omitted entirely?

Omitting it entirely sounds reasonable to me. I think the way exceptions work should probably get cleaned up eventually, so just kind of kicking this one down the road a bit and accepting a reasonable-but-not-perfect behavior seems good.

btrahan edited edge metadata.

lose the error message so now we don't catch ConduitException in diffusion anywhere

This revision was automatically updated to reflect the committed changes.