Adds more information to Objective C error when the expected objc_class_prefix option is missing.

This commit is contained in:
Sergio Campama 2016-03-03 16:45:15 -03:00
parent 78105897a8
commit b5a35b4411

View file

@ -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";
}