Skip to content

Commit cd24fb4

Browse files
print error message in poll login
1 parent 6ffa753 commit cd24fb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/provider/utility.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func PollJobStatus(job_id string, ctx context.Context, client *dctapi.APIClient)
2323
if err != nil {
2424
resBody, resBodyErr := ResponseBodyToString(httpRes.Body)
2525
if resBodyErr != nil {
26+
ErrorLog.Print(resBodyErr.Error())
2627
return "", resBodyErr.Error()
2728
}
2829
ErrorLog.Print(err.Error())
@@ -39,6 +40,7 @@ func PollJobStatus(job_id string, ctx context.Context, client *dctapi.APIClient)
3940
}
4041
resBody, resBodyErr := ResponseBodyToString(httpRes.Body)
4142
if resBodyErr != nil {
43+
ErrorLog.Print(resBodyErr.Error())
4244
return "", resBodyErr.Error()
4345
}
4446
ErrorLog.Print(err.Error())

0 commit comments

Comments
 (0)