diff options
author | Mike Frysinger <vapier@google.com> | 2023-06-08 23:05:27 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2023-06-09 19:14:17 +0000 |
commit | 58dbbba71da293d64ee74fd85898df05798a3f60 (patch) | |
tree | 568e7c0fdfa8880a502341bd5da89377a67fff69 | |
parent | c18581114435209fae52357d7265c7683e0a2695 (diff) | |
download | repohooks-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-x | pre-upload.py | 2 |
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) |