Skip to content

Commit

Permalink
chore: correct error on invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmoellerdev committed Jan 2, 2025
1 parent 29b6f52 commit 5872c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/jfrogplugin/uploaders/helm/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func Upload(
err = errors.Join(err, res.Body.Close())
}()

if res.StatusCode != http.StatusOK {
if res.StatusCode != http.StatusCreated {
responseBytes, err := io.ReadAll(res.Body)
if err != nil {
return nil, fmt.Errorf("failed to read response body but server returned %v: %w", res.StatusCode, err)
Expand Down

0 comments on commit 5872c1a

Please sign in to comment.