aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2023-06-08 23:05:27 -0400
committerMike Frysinger <vapier@google.com>2023-06-09 19:14:17 +0000
commit58dbbba71da293d64ee74fd85898df05798a3f60 (patch)
tree568e7c0fdfa8880a502341bd5da89377a67fff69
parentc18581114435209fae52357d7265c7683e0a2695 (diff)
downloadrepohooks-58dbbba71da293d64ee74fd85898df05798a3f60.tar.gz
pre-upload: tighten up final error message a little
Shorten the final error message by 1 line. When there's errors from hooks, better to focus on those than scroll them off with a generic message. Make sure it still fits within standard 80 cols. Bug: None Test: unittests Change-Id: I709bf4321d6c9953472d8ac52c52b0e94d0b55ee
-rwxr-xr-xpre-upload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-upload.py b/pre-upload.py
index f486125..2dc2942 100755
--- a/pre-upload.py
+++ b/pre-upload.py
@@ -422,7 +422,7 @@ def main(project_list, worktree_list=None, **_kwargs):
color = rh.terminal.Color()
print(color.color(color.RED, 'FATAL') +
': Preupload failed due to above error(s).\n'
- f'For more info, please see:\n{REPOHOOKS_URL}',
+ f'For more info, see: {REPOHOOKS_URL}',
file=sys.stderr)
sys.exit(1)