Commit 791be0bc authored by hinoka@chromium.org's avatar hinoka@chromium.org

Added extra error message to trychange for empty diffs


BUG=


Review URL: https://chromiumcodereview.appspot.com/11046004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159765 0039d316-1c4b-4281-b951-d872f2087c98
parent 53937ba7
......@@ -777,6 +777,7 @@ def TryChange(argv,
for checkout in checkouts:
raw_diff = checkout.GenerateDiff()
if not raw_diff:
logging.error('Empty or non-existant diff, exiting.')
return 1
diff = raw_diff.splitlines(True)
path_diff = gclient_utils.PathDifference(root, checkout.checkout_root)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment