mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #5365 from crosbymichael/job-status
Add exported status code from a job
This commit is contained in:
commit
4701f8ee60
1 changed files with 4 additions and 0 deletions
|
@ -208,3 +208,7 @@ func (job *Job) Error(err error) Status {
|
|||
fmt.Fprintf(job.Stderr, "%s\n", err)
|
||||
return StatusErr
|
||||
}
|
||||
|
||||
func (job *Job) StatusCode() int {
|
||||
return int(job.status)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue