|
@@ -45,10 +45,10 @@ func SimpleUUID() string {
|
|
|
return strings.ReplaceAll(GetUUID(), "-", "")
|
|
return strings.ReplaceAll(GetUUID(), "-", "")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func ResponseStatusError(resp *resty.Response) error {
|
|
|
|
|
|
|
+func ResponseStatusError(url string, resp *resty.Response) error {
|
|
|
if resp.Body() != nil && len(resp.Body()) != 0 {
|
|
if resp.Body() != nil && len(resp.Body()) != 0 {
|
|
|
- return fmt.Errorf("Status: %d %s\n", resp.StatusCode(), resp.Body())
|
|
|
|
|
|
|
+ return fmt.Errorf("URL: %s Status: %d %s\n", url, resp.StatusCode(), resp.Body())
|
|
|
} else {
|
|
} else {
|
|
|
- return fmt.Errorf("Status: %d %s\n", resp.StatusCode(), resp.Status())
|
|
|
|
|
|
|
+ return fmt.Errorf("URL: %s Status: %s\n", url, resp.Status())
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|