This commit is contained in:
Catena cyber 2025-12-03 20:45:16 +00:00 committed by GitHub
commit 1c364945df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -207,9 +207,11 @@ func (r *response) checkErrors() error {
return r.Errors[0]
}
var messages string
var messagesSb210 strings.Builder
for _, e := range r.Errors {
messages += fmt.Sprintf("%s; ", e)
messagesSb210.WriteString(fmt.Sprintf("%s; ", e))
}
messages += messagesSb210.String()
return fmt.Errorf("API errors: %s", messages)
}