89b2806f6a
* Switch to the standard errors API, that was introduced in 1.13
* Fix linter errors 🤦
* Remove withStackError
* fix: freeze go version to 1.17, since 1.18 introduced generics, which are not supported by linters yet
* fix: freeze go version to 1.17, since 1.18 introduced generics, which are not supported by linters yet
13 lines
293 B
Go
13 lines
293 B
Go
package kong
|
|
|
|
// ParseError is the error type returned by Kong.Parse().
|
|
//
|
|
// It contains the parse Context that triggered the error.
|
|
type ParseError struct {
|
|
error
|
|
Context *Context
|
|
}
|
|
|
|
// Unwrap returns the original cause of the error.
|
|
func (p *ParseError) Unwrap() error { return p.error }
|