Skip to content

Commit cf57963

Browse files
committed
Harmonize error messages
1 parent fb3cf7e commit cf57963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

climada/util/coordinates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,8 @@ def get_country_geometries(
833833
if extent:
834834
if not check_if_geo_coords(extent[2:], extent[:2]):
835835
raise ValueError(
836-
"Coordinates are not geographic (i.e. in degrees). "
837-
"Please convert to a geographical coordinate system first."
836+
"Input lat and lon coordinates are not geographic "
837+
"or have total extents > 180° for lat or > 360° for lon."
838838
)
839839

840840
if extent[1] < extent[0]:

0 commit comments

Comments
 (0)