Improve error message for lat/long missing #80
This commit is contained in:
parent
e3b327f1af
commit
d2ba33d5f4
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func (m *MediaFile) GetLocation() (*models.Location, error) {
|
|||
|
||||
if exifData, err := m.GetExifData(); err == nil {
|
||||
if exifData.Lat == 0 && exifData.Long == 0 {
|
||||
return nil, errors.New("lat and long are missing in Exif metadata")
|
||||
return nil, errors.New("lat and long are missing in metadata")
|
||||
}
|
||||
|
||||
url := fmt.Sprintf("https://nominatim.openstreetmap.org/reverse?lat=%f&lon=%f&format=jsonv2", exifData.Lat, exifData.Long)
|
||||
|
|
Loading…
Reference in a new issue