Adds more information to Objective C error when the expected objc_class_prefix option is missing.
This commit is contained in:
parent
78105897a8
commit
b5a35b4411
1 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue