OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / hashicorp / hcl / hcl / parser / error.go
1 package parser
2
3 import (
4         "fmt"
5
6         "github.com/hashicorp/hcl/hcl/token"
7 )
8
9 // PosError is a parse error that contains a position.
10 type PosError struct {
11         Pos token.Pos
12         Err error
13 }
14
15 func (e *PosError) Error() string {
16         return fmt.Sprintf("At %s: %s", e.Pos, e.Err)
17 }