Page MenuHomePhabricator

Fix two minor issues with "arc download"
ClosedPublic

Authored by epriestley on Apr 28 2017, 12:22 AM.
Tags
None
Referenced Files
F18935383: D17800.id.diff
Nov 10 2025, 6:13 PM
F18919292: D17800.diff
Nov 9 2025, 11:44 AM
F18794912: D17800.id42808.diff
Oct 17 2025, 1:15 AM
F18770306: D17800.diff
Oct 8 2025, 11:50 AM
F18733580: D17800.id.diff
Sep 30 2025, 10:37 PM
F18683460: D17800.id42800.diff
Sep 26 2025, 7:38 AM
F18650074: D17800.diff
Sep 20 2025, 11:21 PM
F18648961: D17800.id42808.diff
Sep 20 2025, 6:19 PM
Subscribers
None

Details

Summary

Ref T12651. Ran into these during D17799:

  • Use getStatusCode() to put the actual status code into the message.
  • If we fail but wrote an empty file to reserve the filename, clean it up.
Test Plan
  • Faked the error, phlog()'d the exception.
  • Saw sensible exception message.
  • Saw empty file get cleaned up.

Diff Detail

Repository
rARC Arcanist
Branch
download1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16727
Build 22316: Run Core Tests
Build 22315: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Apr 28 2017, 6:43 AM
This revision was automatically updated to reflect the committed changes.