summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Wedgwood <cw@f00f.org>2011-11-28 09:50:40 -0800
committerChristopher Wedgwood <cw@f00f.org>2011-11-28 09:50:40 -0800
commit8c25f8cf4a06cbab46b07e0a1fa95a9a91df71af (patch)
treec5a494ad066ad9cebcf0b5d8df3a3eca9ed671f4
parentcc27c0d95c68ebfdd8c362c29a770d14ed7c3c25 (diff)
downloadgo-8c25f8cf4a06cbab46b07e0a1fa95a9a91df71af.tar.gz
doc/tmptohtml: output fix
R=r, gri CC=golang-dev http://codereview.appspot.com/5441047 Committer: Robert Griesemer <gri@golang.org>
-rw-r--r--doc/tmpltohtml.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tmpltohtml.go b/doc/tmpltohtml.go
index fc5034ca9..1e3424cf5 100644
--- a/doc/tmpltohtml.go
+++ b/doc/tmpltohtml.go
@@ -141,7 +141,7 @@ func multipleLines(file, text string, arg1, arg2 interface{}) string {
if !isInt2 {
line2 = match(file, line1, lines, pattern2)
} else if line2 < line1 {
- log.Fatal("lines out of order for %q: %d %d", line1, line2)
+ log.Fatalf("lines out of order for %q: %d %d", text, line1, line2)
}
return strings.Join(lines[line1-1:line2], "")
}
@@ -153,7 +153,7 @@ func match(file string, start int, lines []string, pattern string) int {
// $ matches the end of the file.
if pattern == "$" {
if len(lines) == 0 {
- log.Fatal("%q: empty file", file)
+ log.Fatalf("%q: empty file", file)
}
return len(lines)
}