Page MenuHomePhabricator

Diffusion - clean up catching ConduitException
ClosedPublic

Authored by btrahan on Feb 17 2015, 9:06 PM.
Tags
None
Referenced Files
F14100775: D11789.diff
Tue, Nov 26, 3:00 PM
Unknown Object (File)
Mon, Nov 25, 2:56 AM
Unknown Object (File)
Wed, Nov 20, 4:40 PM
Unknown Object (File)
Sun, Nov 17, 12:24 AM
Unknown Object (File)
Tue, Nov 5, 8:05 PM
Unknown Object (File)
Oct 25 2024, 5:04 PM
Unknown Object (File)
Oct 23 2024, 10:53 AM
Unknown Object (File)
Oct 20 2024, 4:40 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
Branch
T7123
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4523
Build 4537: [Placeholder Plan] Wait for 30 Seconds

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.