MCPcopy Index your code
hub / github.com/go-task/task / TaskExitCode

Method TaskExitCode

errors/errors_task.go:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (err *TaskRunError) TaskExitCode() int {
50 var exit interp.ExitStatus
51 if errors.As(err.Err, &exit) {
52 return int(exit)
53 }
54 return err.Code()
55}
56
57func (err *TaskRunError) Unwrap() error {
58 return err.Err

Callers 2

TestErrorCodeFunction · 0.80
mainFunction · 0.80

Calls 1

CodeMethod · 0.95

Tested by 1

TestErrorCodeFunction · 0.64