| commit | bafa7bc8edb89b209bd8029479915d1417901a86 | [log] [tgz] |
|---|---|---|
| author | David Symonds <dsymonds@golang.org> | Wed Jul 01 07:59:00 2015 +1000 |
| committer | David Symonds <dsymonds@golang.org> | Wed Jul 01 11:00:33 2015 +1000 |
| tree | aa8522acc56238a228b38b7f20804a0c3aa88601 | |
| parent | aece6fb931241ad332956db4f62798dfbea944b3 [diff] [blame] |
More accurately report text parsing failures for invalid strings.
diff --git a/proto/text_parser.go b/proto/text_parser.go index 5c466d5..7d0c757 100644 --- a/proto/text_parser.go +++ b/proto/text_parser.go
@@ -174,7 +174,7 @@ } unq, err := unquoteC(p.s[1:i], rune(p.s[0])) if err != nil { - p.errorf("invalid quoted string %v", p.s[0:i+1]) + p.errorf("invalid quoted string %s: %v", p.s[0:i+1], err) return } p.cur.value, p.s = p.s[0:i+1], p.s[i+1:len(p.s)]