Add return for error while uploding image

This commit is contained in:
rkmpa
2026-03-15 10:08:27 +01:00
parent dfb9b36d07
commit ab373e1c8f

1
api.go
View File

@@ -241,6 +241,7 @@ func uploadPhotoBinaries(images []imageWithMeta, metaResp models.ImageMetaRespon
defer resp.Body.Close() defer resp.Body.Close()
if resp.StatusCode >= 400 { if resp.StatusCode >= 400 {
return fmt.Errorf("failed to upload photo %s: status %d", title, resp.StatusCode)
} }
} }