~ubuntu-branches/ubuntu/wily/phabricator/wily-proposed

« back to all changes in this revision

Viewing changes to libphutil/src/future/aws/PhutilAWSException.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-05-25 22:45:19 UTC
  • mfrom: (0.29.1) (0.28.1) (0.27.1) (9.1.1 wily)
  • Revision ID: package-import@ubuntu.com-20150525224519-x791swte8e0ndv8c
Tags: 0~git20150525-1
* New snapshot release
* fix update postinst when using nginx (closes: #784221)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    $this->params = $params;
13
13
 
14
14
    $desc = array();
15
 
    $desc[] = 'AWS Request Failed';
16
 
    $desc[] = 'HTTP Status Code: '.$http_status;
 
15
    $desc[] = pht('AWS Request Failed');
 
16
    $desc[] = pht('HTTP Status Code: %d', $http_status);
17
17
 
18
18
    if ($this->requestID) {
19
 
      $desc[] = 'AWS Request ID: '.$this->requestID;
 
19
      $desc[] = pht('AWS Request ID: %s', $this->requestID);
20
20
      $errors = idx($params, 'Errors');
21
21
      if ($errors) {
22
 
        $desc[] = 'AWS Errors:';
 
22
        $desc[] = pht('AWS Errors:');
23
23
        foreach ($errors as $error) {
24
24
          list($code, $message) = $error;
25
25
          $desc[] = "    - {$code}: {$message}\n";
26
26
        }
27
27
      }
28
28
    } else {
29
 
      $desc[] = 'Response Body: '.idx($params, 'body');
 
29
      $desc[] = pht('Response Body: %s', idx($params, 'body'));
30
30
    }
31
31
 
32
32
    $desc = implode("\n", $desc);