Skip to content

Commit

Permalink
ObjC: Fix logic error in exception loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Jul 1, 2021
1 parent e60ec85 commit 4b77b73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool PrefixModeStorage::is_package_exempted(const std::string& package) {
if (exceptions_.empty() && !exception_path_.empty()) {
std::string error_str;
SimpleLineCollector collector(&exceptions_);
if (ParseSimpleFile(exception_path_, &collector, &error_str)) {
if (!ParseSimpleFile(exception_path_, &collector, &error_str)) {
if (error_str.empty()) {
error_str = std::string("protoc:0: warning: Failed to parse")
+ std::string(" package prefix exceptions file: ")
Expand Down

0 comments on commit 4b77b73

Please sign in to comment.