This commit is contained in:
parent
64fd3da925
commit
0ce5b46449
2 changed files with 15 additions and 14 deletions
|
@ -100,7 +100,7 @@ func uploadFile(ctx context.Context, l *slog.Logger, conf config.Config, path st
|
|||
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
body, _ := io.ReadAll(resp.Body)
|
||||
return fmt.Errorf("Got HTTP Status Code: %v Body: %v", resp.StatusCode, body)
|
||||
return fmt.Errorf("Got HTTP Status Code: %v Body: %v", resp.StatusCode, string(body))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue