update to latest version of action parser

This commit is contained in:
Casey Lee
2019-01-31 16:36:28 -08:00
parent bc5c23e8e4
commit 3e04312912
10 changed files with 89 additions and 46 deletions

View File

@@ -1,6 +1,7 @@
package parser
import (
"bytes"
"fmt"
"sort"
"strconv"
@@ -17,7 +18,13 @@ type ParserError struct {
}
func (p *ParserError) Error() string {
return p.message
buffer := bytes.NewBuffer(nil)
buffer.WriteString(p.message)
for _, e := range p.Errors {
buffer.WriteString("\n ")
buffer.WriteString(e.Error())
}
return buffer.String()
}
// Error represents an error identified by the parser, either syntactic