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
1 changed files with 4 additions and 0 deletions

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