Add a hint to the C++ ending guard message
Change-Id: I26f90a3a9f81d71e4cc2bf13777492552227140d
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/55325
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
diff --git a/util/doc.go b/util/doc.go
index 0460890..45caa15 100644
--- a/util/doc.go
+++ b/util/doc.go
@@ -411,9 +411,9 @@
lines = lines[1:]
lineNo++
break
- }
+ }
if line == cppGuard {
- return nil, fmt.Errorf("hit ending C++ guard while in section on line %d", lineNo)
+ return nil, fmt.Errorf("hit ending C++ guard while in section on line %d (possibly missing two empty lines ahead of guard?)", lineNo)
}
var comment []string