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
F14036346: D14745.diff
Sun, Nov 10, 9:48 AM
F14012228: D14745.id.diff
Fri, Nov 1, 9:26 AM
F14010994: D14745.id35661.diff
Thu, Oct 31, 3:06 PM
F14010990: D14745.id.diff
Thu, Oct 31, 2:59 PM
F13996656: D14745.diff
Wed, Oct 23, 10:56 PM
F13992839: D14745.id.diff
Tue, Oct 22, 7:12 PM
Unknown Object (File)
Oct 2 2024, 9:02 AM
Unknown Object (File)
Oct 1 2024, 12:18 PM
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.