]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix invalid parameter in phutil_console_wrap()
authorNevogd <nevogd@yahoo.co.uk>
Tue, 26 May 2015 13:07:02 +0000 (06:07 -0700)
committerepriestley <git@epriestley.com>
Tue, 26 May 2015 13:07:25 +0000 (06:07 -0700)
Summary:
Fixes T8314. Change the phutil_console_wrap() call to only have a single
string parameter.

Test Plan:
Ran `arc diff` added text into the title, summary and test plan fields,
but did not specify any reviewers. When prompted to continue, clicked 'No' and
saw the '(Message saved to commit message.)' string.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Maniphest Tasks: T8314

Differential Revision: https://secure.phabricator.com/D13015

src/workflow/ArcanistDiffWorkflow.php

index ded017b4d47d9309f4fe704cdf46c7714ed005b5..224ae8ad10b146555bf339883b7bc49c5497a814 100644 (file)
@@ -1724,11 +1724,7 @@ EOTEXT
         }
       } catch (Exception $ex) {
         if ($wrote) {
-          echo phutil_console_wrap(
-            "%s\n",
-            pht(
-              '(Message saved to %s.)',
-              $where));
+          echo phutil_console_wrap(pht('(Message saved to %s.)', $where)."\n");
         }
         throw $ex;
       }