initial commits
parent
16a0c78958
commit
7d47a22a89
3
parse.go
3
parse.go
|
@ -54,7 +54,8 @@ func Parse(fn func(rune)error, runescanner io.RuneScanner) error {
|
||||||
if expected != actual {
|
if expected != actual {
|
||||||
err := runescanner.UnreadRune()
|
err := runescanner.UnreadRune()
|
||||||
if nil != err {
|
if nil != err {
|
||||||
return errProblemUnreadingCharacterNumber(nextRead, err, r)
|
characterNumber := nextRead - 1
|
||||||
|
return errProblemUnreadingCharacterNumber(characterNumber, err, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
return erorr.Errorf("brace: expected first character of brace-string literal to be a %q (%U), but actually was %q (%U)", expected, expected, actual, actual)
|
return erorr.Errorf("brace: expected first character of brace-string literal to be a %q (%U), but actually was %q (%U)", expected, expected, actual, actual)
|
||||||
|
|
Loading…
Reference in New Issue