Browse Source

fix typo in error message

pull/3/head
alufers 1 year ago
parent
commit
b51fbe9572
No known key found for this signature in database
GPG Key ID: 9176AE047525A423
  1. 2
      trackingapi/trackingapi.go

2
trackingapi/trackingapi.go

@ -22,7 +22,7 @@ func GetTrackingData(parcelNumber string) (*TrackingAPISchema, error) {
defer resp.Body.Close()
if resp.StatusCode > 399 {
data, _ := ioutil.ReadAll(resp.Body)
return nil, fmt.Errorf("racieved HTTP error code form tracking endpoint %v, HTTP body: %v", resp.StatusCode, string(data))
return nil, fmt.Errorf("recieved HTTP error code form tracking endpoint %v, HTTP body: %v", resp.StatusCode, string(data))
}
decoder := json.NewDecoder(resp.Body)
trackingData := &TrackingAPISchema{}

Loading…
Cancel
Save