瀏覽代碼

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

Sergio Campama 9 年之前
父節點
當前提交
b5a35b4411
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/google/protobuf/compiler/objectivec/objectivec_helpers.cc

+ 2 - 1
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";
       }