Skip to content

Commit 39636dd

Browse files
committed
added debug message on wrong status code
1 parent 8f4332f commit 39636dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ func makeRequest(method, url string, payload io.Reader, headers map[string]strin
245245
}
246246

247247
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
248+
debug.Debug(fmt.Sprintf("response body: %s", string(body)))
248249
return nil, fmt.Errorf("got %d from %s", resp.StatusCode, url)
249250
}
250251

0 commit comments

Comments
 (0)