blob: d6c53c9a640cd5132abf67981f4d478c7f9bcbb2 [file] [log] [blame]
package parser
import (
"fmt"
"google3/third_party/golang/hashicorp/hcl/hcl/token/token"
)
// PosError is a parse error that contains a position.
type PosError struct {
Pos token.Pos
Err error
}
func (e *PosError) Error() string {
return fmt.Sprintf("At %s: %s", e.Pos, e.Err)
}