From 4e89144a7549804ddc2426e0ae3f46e288491ddc Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 6 Jul 2017 21:40:58 +0200 Subject: [PATCH] git-cl: fix auth error message computation Bug: Change-Id: Ic57563b131ff7e50985748eeb3d55e4b69b8db87 Reviewed-on: https://chromium-review.googlesource.com/562279 Reviewed-by: Andrii Shyshkalov Commit-Queue: Andrii Shyshkalov --- git_cl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git_cl.py b/git_cl.py index 98b474ac92..e7d952273e 100755 --- a/git_cl.py +++ b/git_cl.py @@ -2438,8 +2438,8 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase): return else: missing = ( - [] if gerrit_auth else [self._gerrit_host] + - [] if git_auth else [git_host]) + ([] if gerrit_auth else [self._gerrit_host]) + + ([] if git_auth else [git_host])) DieWithError('Credentials for the following hosts are required:\n' ' %s\n' 'These are read from %s (or legacy %s)\n'