Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
49
func
(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
57
func
(err *TaskRunError) Unwrap() error {
58
return
err.Err
Callers
2
TestErrorCode
Function · 0.80
main
Function · 0.80
Calls
1
Code
Method · 0.95
Tested by
1
TestErrorCode
Function · 0.64