From: Nevogd Date: Tue, 26 May 2015 13:07:02 +0000 (-0700) Subject: Fix invalid parameter in phutil_console_wrap() X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=407af00ef61347091446f8f0b47259c358bae92f;p=arcanist.git Fix invalid parameter in phutil_console_wrap() 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 --- diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index ded017b4..224ae8ad 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -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; }