fix(jobservice):add job id in log getting error (#12513)

Signed-off-by: Steven Zou <szou@vmware.com>
This commit is contained in:
Steven Zou 2020-07-17 22:33:41 +08:00 committed by GitHub
parent a74efdac4d
commit d9ca9bbc69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,7 @@ func (bc *basicController) GetJobLogData(jobID string) ([]byte, error) {
logData, err := logger.Retrieve(jobID)
if err != nil {
return nil, err
return nil, errors.Wrapf(err, "error for getting log of job %s", jobID)
}
return logData, nil