mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 09:18:38 +00:00
Fix error message formatting in relay_utils.go
This commit is contained in:
@@ -258,7 +258,7 @@ func GetBase64sFromForm(c *gin.Context, fieldName string) ([]*Base64Data, error)
|
|||||||
}
|
}
|
||||||
imageFiles, exists := mf.File[fieldName]
|
imageFiles, exists := mf.File[fieldName]
|
||||||
if !exists || len(imageFiles) == 0 {
|
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
|
var imageBase64s []*Base64Data
|
||||||
for _, file := range imageFiles {
|
for _, file := range imageFiles {
|
||||||
|
|||||||
Reference in New Issue
Block a user