]> khamidou — GitHub mirrors - arcanist.git/commit
When a file upload fails during "arc diff", show why
authorepriestley <git@epriestley.com>
Wed, 12 Jun 2013 12:50:08 +0000 (05:50 -0700)
committerepriestley <git@epriestley.com>
Wed, 12 Jun 2013 12:50:08 +0000 (05:50 -0700)
commitc38bc4376c2d51fc1c1137eee7bbc2dd5528e351
tree743c48b070f95ec514a4a9532c38c47953beaf79
parent2e61b1a3df7b4667a5b1bcfa587e730480a9d870
When a file upload fails during "arc diff", show why

Summary: We currently swallow the exception message, but this isn't useful. Fixes T3354.

Test Plan:
  $ arc diff HEAD^ --conduit-uri=http://local.aphront.com:8080/ --only
  Uploading 1 files...
  Failed to upload new binary 'large.png'.

  [HTTP/500] Internal Server Error
  As received by the server, this request had a nonzero content length but no POST data.

  Normally, this indicates that it exceeds the 'post_max_size' setting in the PHP configuration on the server. Increase the 'post_max_size' setting or reduce the size of the request.

  Request size according to 'Content-Length' was '2093052', 'post_max_size' is set to '100K'.

      Continue? [Y/n]

Reviewers: jamesr, chad

Reviewed By: chad

CC: aran
Maniphest Tasks: T3354

Differential Revision: https://secure.phabricator.com/D6186
src/workflow/ArcanistDiffWorkflow.php