MCPcopy Create free account
hub / github.com/alecthomas/kong / ExitCode

Method ExitCode

error.go:16–21  ·  view source on GitHub ↗

ExitCode returns the status that Kong should exit with if it fails with a ParseError.

()

Source from the content-addressed store, hash-verified

14
15// ExitCode returns the status that Kong should exit with if it fails with a ParseError.
16func (p *ParseError) ExitCode() int {
17 if p.exitCode == 0 {
18 return exitNotOk
19 }
20 return p.exitCode
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected