forked from MapComplete/MapComplete
Docs: improve error message if something goes wrong in the image upload
This commit is contained in:
parent
557b41d70f
commit
c002d66329
1 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,9 @@ export class ImageUploadManager {
|
|||
}
|
||||
if (location === undefined || location?.some((l) => l === undefined)) {
|
||||
feature ??= this._indexedFeatures.featuresById.data.get(featureId)
|
||||
if(feature === undefined){
|
||||
throw "ImageUploadManager: no feature given and no feature found in the indexedFeature. Cannot upload this image"
|
||||
}
|
||||
location = GeoOperations.centerpointCoordinates(feature)
|
||||
}
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue