aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2016-02-11 10:43:47 -0800
committerJoshua Haberman <jhaberman@gmail.com>2016-02-11 10:43:47 -0800
commit655a9d667ff29aa23209f3303fc5bd3fa3990d5f (patch)
treea68f5df021effe84a765dd8b6c883adf7d2476da /src
parent2d3f79f7d62c5e66048462ba0ace0ef56e98e981 (diff)
parentd740bc9bd15876bfb60dfce7683122d967d89c89 (diff)
downloadprotobuf-655a9d667ff29aa23209f3303fc5bd3fa3990d5f.tar.gz
protobuf-655a9d667ff29aa23209f3303fc5bd3fa3990d5f.tar.bz2
protobuf-655a9d667ff29aa23209f3303fc5bd3fa3990d5f.zip
Merge pull request #1217 from jhump/jh/make-warning-useful
make 'no syntax' warning useful by showing which file
Diffstat (limited to 'src')
-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";
}