aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Sergio Campama <kaipi@google.com>2016-03-03 16:45:15 -0300
committerGravatar Sergio Campama <kaipi@google.com>2016-03-03 16:49:53 -0300
commitb5a35b441107c40e53584cf655dd558a05f40e79 (patch)
tree569adbb9e3078ed31ebfe81fef7936dec3267f03
parent78105897a8f01c7be9cf8502b6c58d47eb1ccdd7 (diff)
Adds more information to Objective C error when the expected objc_class_prefix option is missing.
-rw-r--r--src/google/protobuf/compiler/objectivec/objectivec_helpers.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc b/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
index 77a378c8..3e7ccb43 100644
--- a/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
+++ b/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
@@ -968,7 +968,8 @@ bool ValidateObjCClassPrefix(const FileDescriptor* file,
} else {
// ...it didn't match!
*out_error = "error: Expected 'option objc_class_prefix = \"" +
- package_match->second + "\";' in '" + file->name() + "'";
+ package_match->second + "\";' for package '" + package +
+ "' in '" + file->name() + "'";
if (prefix.length()) {
*out_error += "; but found '" + prefix + "' instead";
}