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)
Apr 23 2025, 1:19 PM
Unknown Object (File)
Apr 20 2025, 2:40 PM
Unknown Object (File)
Apr 19 2025, 1:39 PM
Unknown Object (File)
Apr 18 2025, 11:31 AM
Unknown Object (File)
Apr 7 2025, 2:34 AM
Unknown Object (File)
Mar 18 2025, 6:19 PM
Unknown Object (File)
Mar 18 2025, 5:10 AM
Unknown Object (File)
Mar 15 2025, 2:44 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.