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
F19034447: D14745.id35660.diff
Nov 25 2025, 2:15 PM
F19020448: D14745.diff
Nov 23 2025, 5:43 PM
F18811713: D14745.id35660.diff
Oct 20 2025, 4:30 AM
F18790243: D14745.id.diff
Oct 15 2025, 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
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.