1
0
Fork 0
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:
Solomon Hykes 2014-04-25 17:27:07 -07:00
commit 4701f8ee60

View file

@ -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)
}