Skip to content

Commit

Permalink
Fix error capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
GaPhi committed Dec 22, 2024
1 parent fcd1d1c commit c6657ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/uploadSteps.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (u *Upload) requestUploadURL() error {
jsonStr, _ := json.Marshal(jsonReq)
req, err := http.NewRequest("POST", NewUploadURL, bytes.NewBuffer(jsonStr))
if err != nil {
return fmt.Errorf("Can't create upload URL request: %v", err.Error())
return fmt.Errorf("can't create upload URL request: %v", err.Error())
}

// Add headers for the request
Expand All @@ -103,7 +103,7 @@ func (u *Upload) requestUploadURL() error {
// Make the request
res, err := u.Credentials.Client.Do(req)
if err != nil {
return fmt.Errorf("Error during the request to get the upload URL: %v", err.Error())
return fmt.Errorf("error during the request to get the upload URL: %v", err.Error())
}
defer func(Body io.ReadCloser) {
_ = Body.Close()
Expand Down

0 comments on commit c6657ae

Please sign in to comment.