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
F18811713: D14745.id35660.diff
Mon, Oct 20, 4:30 AM
F18790243: D14745.id.diff
Wed, Oct 15, 1:13 PM
F18712964: D14745.id.diff
Sep 29 2025, 5:34 AM
F18672843: D14745.id35660.diff
Sep 25 2025, 8:25 AM
F18618095: D14745.id35661.diff
Sep 14 2025, 11:10 PM
F18193876: D14745.id35660.diff
Aug 17 2025, 7:19 AM
F18185710: D14745.id35661.diff
Aug 16 2025, 4:49 PM
F18184890: D14745.diff
Aug 16 2025, 2:30 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.