aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/parser.cc
diff options
context:
space:
mode:
authorJoshua Humphries <jh@squareup.com>2016-02-06 08:34:08 -0500
committerJoshua Humphries <jh@squareup.com>2016-02-06 08:34:08 -0500
commitd740bc9bd15876bfb60dfce7683122d967d89c89 (patch)
treecbd221be9fcc09560bceec186190e778301b773f /src/google/protobuf/compiler/parser.cc
parent0906f5d18a2548024b511eadcbb4cfc0ca56cd67 (diff)
downloadprotobuf-d740bc9bd15876bfb60dfce7683122d967d89c89.tar.gz
protobuf-d740bc9bd15876bfb60dfce7683122d967d89c89.tar.bz2
protobuf-d740bc9bd15876bfb60dfce7683122d967d89c89.zip
make 'no syntax' warning useful by showing which file
Diffstat (limited to 'src/google/protobuf/compiler/parser.cc')
-rw-r--r--src/google/protobuf/compiler/parser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/google/protobuf/compiler/parser.cc b/src/google/protobuf/compiler/parser.cc
index ea792a9d..90ded4de 100644
--- a/src/google/protobuf/compiler/parser.cc
+++ b/src/google/protobuf/compiler/parser.cc
@@ -544,9 +544,9 @@ bool Parser::Parse(io::Tokenizer* input, FileDescriptorProto* file) {
// Store the syntax into the file.
if (file != NULL) file->set_syntax(syntax_identifier_);
} else if (!stop_after_syntax_identifier_) {
- GOOGLE_LOG(WARNING) << "No syntax specified for the proto file. "
- << "Please use 'syntax = \"proto2\";' or "
- << "'syntax = \"proto3\";' to specify a syntax "
+ GOOGLE_LOG(WARNING) << "No syntax specified for the proto file: "
+ << file->name() << ". Please use 'syntax = \"proto2\";' "
+ << "or 'syntax = \"proto3\";' to specify a syntax "
<< "version. (Defaulted to proto2 syntax.)";
syntax_identifier_ = "proto2";
}