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)
Tue, Feb 25, 2:45 AM
Unknown Object (File)
Sun, Feb 9, 12:05 AM
Unknown Object (File)
Sun, Feb 9, 12:05 AM
Unknown Object (File)
Sun, Feb 9, 12:05 AM
Unknown Object (File)
Sun, Feb 9, 12:05 AM
Unknown Object (File)
Feb 4 2025, 9:47 AM
Unknown Object (File)
Feb 2 2025, 3:29 PM
Unknown Object (File)
Jan 31 2025, 1:02 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
Branch
xcensor1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 9480
Build 11300: Run Core Tests
Build 11299: arc lint + arc unit

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.