Merge pull request #5365 from crosbymichael/job-status
Add exported status code from a job
This commit is contained in:
commit
4701f8ee60
|
@ -208,3 +208,7 @@ func (job *Job) Error(err error) Status {
|
||||||
fmt.Fprintf(job.Stderr, "%s\n", err)
|
fmt.Fprintf(job.Stderr, "%s\n", err)
|
||||||
return StatusErr
|
return StatusErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (job *Job) StatusCode() int {
|
||||||
|
return int(job.status)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue