소스 검색

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