secretshop/pkg/suse/secretshop-1.0.0/vendor/github.com/hashicorp/hcl/hcl/parser/error.go

18 lines
266 B
Go
Raw Normal View History

2020-05-15 00:34:07 +00:00
package parser
import (
"fmt"
"github.com/hashicorp/hcl/hcl/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)
}