From 407af00ef61347091446f8f0b47259c358bae92f Mon Sep 17 00:00:00 2001 From: Nevogd Date: Tue, 26 May 2015 06:07:02 -0700 Subject: [PATCH] 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 --- src/workflow/ArcanistDiffWorkflow.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; } -- 2.43.0