Page MenuHomePhabricator

Throw CommandException instead of Exception after `git fetch` failure in repository updates
ClosedPublic

Authored by epriestley on Dec 12 2015, 12:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 10, 3:54 AM
Unknown Object (File)
Mon, Sep 2, 11:00 PM
Unknown Object (File)
Sat, Aug 31, 6:56 AM
Unknown Object (File)
Fri, Aug 30, 1:22 PM
Unknown Object (File)
Fri, Aug 30, 2:06 AM
Unknown Object (File)
Fri, Aug 30, 2:06 AM
Unknown Object (File)
Fri, Aug 30, 2:06 AM
Unknown Object (File)
Fri, Aug 30, 2:00 AM
Subscribers
None

Details

Summary

Fixes T9966. In this unusual, difficult-to-reach case, we throw Exception (which has no censoring) instead of CommandException (which has censoring). Throw CommandException instead.

Test Plan
  • Hacked up a bunch of stuff in order to hit this: disabled origin validation, origin correction, and pointed repository at a bad domain.
  • Verified message is now censored correctly.

Screen Shot 2015-12-11 at 4.50.02 PM.png (106×1 px, 43 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Throw CommandException instead of Exception after `git fetch` failure in repository updates.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Dec 12 2015, 12:52 AM
This revision was automatically updated to reflect the committed changes.