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
F15407558: D14745.id35661.diff
Tue, Mar 18, 6:19 PM
F15403861: D14745.id35660.diff
Tue, Mar 18, 5:10 AM
F15387647: D14745.id.diff
Sat, Mar 15, 2:44 AM
F15337095: D14745.diff
Sun, Mar 9, 4:03 AM
F15332693: D14745.id35660.diff
Fri, Mar 7, 7:16 PM
Unknown Object (File)
Tue, Feb 25, 2:45 AM
Unknown Object (File)
Feb 9 2025, 12:05 AM
Unknown Object (File)
Feb 9 2025, 12:05 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.