From cb188176873bb65972e7f58c2d317042ad2d9858 Mon Sep 17 00:00:00 2001 From: Harvey Tuch Date: Mon, 7 Oct 2019 19:32:42 -0400 Subject: [PATCH] proto_sync: improve error message. It was previously pointing at proto_sync.py, which is misleading, it's necessary to run the full tools/proto_format.sh for a proto fix. Signed-off-by: Harvey Tuch --- tools/proto_sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/proto_sync.py b/tools/proto_sync.py index 153ba8898da0..f6d100918e89 100755 --- a/tools/proto_sync.py +++ b/tools/proto_sync.py @@ -52,7 +52,8 @@ class RequiresReformatError(ProtoSyncError): def __init__(self, message): super(RequiresReformatError, self).__init__( - '%s; either run ./ci/do_ci.sh fix_format or %s fix to reformat.\n' % (message, sys.argv[0])) + '%s; either run ./ci/do_ci.sh fix_format or ./tools/proto_format.sh fix to reformat.\n' % + message) def LabelPaths(label, src_suffix):