Fix error message formatting in relay_utils.go

This commit is contained in:
IcedTangerine
2025-11-27 17:59:38 +08:00
committed by GitHub
parent a0982996a4
commit 4d00dad002

View File

@@ -258,7 +258,7 @@ func GetBase64sFromForm(c *gin.Context, fieldName string) ([]*Base64Data, error)
}
imageFiles, exists := mf.File[fieldName]
if !exists || len(imageFiles) == 0 {
return nil, errors.New("field " + fieldName + "\" is not found or empty")
return nil, errors.New("field " + fieldName + " is not found or empty")
}
var imageBase64s []*Base64Data
for _, file := range imageFiles {