Some error message tweaks

This commit is contained in:
Sasha Koshka 2022-10-16 02:58:31 -04:00
parent f57637d7fc
commit a5b1385012
2 changed files with 4 additions and 3 deletions

View File

@ -391,7 +391,7 @@ func (what Type) Describe () (description string) {
description += "}"
}
if what.length > 0 {
if what.length != 1 {
description += fmt.Sprint(":", what.length)
}

View File

@ -5,10 +5,11 @@ import "git.tebibyte.media/arf/arf/infoerr"
// tokenizeString tokenizes a string or rune literal.
func (lexer *lexingOperation) tokenizeString () (err error) {
token := lexer.newToken()
err = lexer.nextRune()
if err != nil { return }
token := lexer.newToken()
got := ""
tokenWidth := 2