Commit 44fdead9 authored by Thomas Van Lenten's avatar Thomas Van Lenten

Merge pull request #1291 from sergiocampama/devel

Adds more information to Objective C error.
parents 9aea0ef0 b5a35b44
...@@ -969,7 +969,8 @@ bool ValidateObjCClassPrefix(const FileDescriptor* file, ...@@ -969,7 +969,8 @@ bool ValidateObjCClassPrefix(const FileDescriptor* file,
} else { } else {
// ...it didn't match! // ...it didn't match!
*out_error = "error: Expected 'option objc_class_prefix = \"" + *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()) { if (prefix.length()) {
*out_error += "; but found '" + prefix + "' instead"; *out_error += "; but found '" + prefix + "' instead";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment