Update pkg/cmd/agent-task/capi/job.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
0dcb1d1e43
commit
591050a8d2
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ func (c *CAPIClient) CreateJob(ctx context.Context, owner, repo, problemStatemen
|
|||
return nil, fmt.Errorf("failed to create job: %s: %s", statusText, j.ErrorInfo.Message)
|
||||
}
|
||||
|
||||
// If the response doesn't have error embeded,
|
||||
// If the response doesn't have error embedded,
|
||||
// try to decode the response itself as a jobError.
|
||||
var errInfo JobError
|
||||
if err := json.NewDecoder(bytes.NewReader(body)).Decode(&errInfo); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue