Page MenuHomePhabricator

Fix two minor issues with "arc download"
ClosedPublic

Authored by epriestley on Apr 28 2017, 12:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 7, 2:46 PM
Unknown Object (File)
Thu, Oct 3, 10:32 AM
Unknown Object (File)
Thu, Sep 19, 2:13 PM
Unknown Object (File)
Thu, Sep 19, 1:20 PM
Unknown Object (File)
Thu, Sep 19, 12:34 PM
Unknown Object (File)
Sep 6 2024, 12:11 AM
Unknown Object (File)
Sep 6 2024, 12:11 AM
Unknown Object (File)
Sep 6 2024, 12:11 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.