Merge pull request #314 from mercedes-benz/improve_error_message

Improve error messages in garm log
This commit is contained in:
Gabriel 2024-11-26 10:44:41 +02:00 committed by GitHub
commit 8e13588edd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 27 additions and 3 deletions

View file

@ -402,7 +402,7 @@ func (s *sqlDatabase) updatePool(tx *gorm.DB, pool Pool, param params.UpdatePool
}
tags := []Tag{}
if param.Tags != nil && len(param.Tags) > 0 {
if len(param.Tags) > 0 {
for _, val := range param.Tags {
t, err := s.getOrCreateTag(tx, val)
if err != nil {