Pass-through error on address creation failure
This commit is contained in:
parent
f6ce5f91a2
commit
52f2a75ec5
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue