Pass-through error on address creation failure

This commit is contained in:
Eli Ribble 2026-03-09 22:18:39 +00:00
parent f6ce5f91a2
commit 52f2a75ec5
No known key found for this signature in database

View file

@ -165,6 +165,10 @@ func postNuisance(w http.ResponseWriter, r *http.Request) {
Latitude: *latlng.Latitude, Latitude: *latlng.Latitude,
Longitude: *latlng.Longitude, Longitude: *latlng.Longitude,
}) })
if err != nil {
respondError(w, "Failed to ensure address: %w", err, http.StatusInternalServerError)
return
}
} }
uploads, err := extractImageUploads(r) uploads, err := extractImageUploads(r)