]> khamidou — GitHub mirrors - arcanist.git/commit
Provide user-friendly error in arc diff --update
authorNick Harper <nharper@fb.com>
Sat, 12 May 2012 01:40:02 +0000 (18:40 -0700)
committerNick Harper <nharper@fb.com>
Sat, 12 May 2012 02:10:20 +0000 (19:10 -0700)
commit032b9b30b0721c3febb5fa355db14cb0bb419273
tree7ca03aabe4481f7fd025276e15c1921aa4bbc59b
parenta31fc544c8e4d379cbfb4d84207eefa890208ca3
Provide user-friendly error in arc diff --update

Summary:
If you forget to provide an argument for --update and have another argument
following it (e.g. HEAD^), we should provide a nice error message instead
of passing that argument through to a conduit call and then printing the
conduit error.

Test Plan: ran 'arc diff --update HEAD^' and got a nice error message

Reviewers: epriestley, jungejason, vrana

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2468
src/workflow/diff/ArcanistDiffWorkflow.php