Page MenuHomePhabricator

Fix two minor issues with "arc download"
ClosedPublic

Authored by epriestley on Apr 28 2017, 12:22 AM.
Tags
None
Referenced Files
F15549404: D17800.id42800.diff
Sun, Apr 27, 5:31 AM
F15547090: D17800.id.diff
Sat, Apr 26, 6:11 PM
F15541390: D17800.diff
Fri, Apr 25, 11:38 AM
F15520092: D17800.diff
Sun, Apr 20, 3:16 AM
F15471851: D17800.diff
Sat, Apr 5, 8:29 AM
F15390911: D17800.id42808.diff
Mar 15 2025, 7:18 AM
F15384195: D17800.diff
Mar 14 2025, 7:06 PM
Unknown Object (File)
Feb 9 2025, 3:56 AM
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.