Skip to content

Commit 7c0aa5b

Browse files
committed
Update error messages
1 parent 947831f commit 7c0aa5b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/parcels/_core/statuscodes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class FieldInterpolationError(RuntimeError):
4141

4242

4343
def _raise_field_interpolation_error(z, y, x):
44-
raise FieldInterpolationError(f"Field interpolation returned NaN at (z={z}, lat={y}, lon={x})")
44+
raise FieldInterpolationError(f"Field interpolation returned NaN at (z={z}, y={y}, x={x})")
4545

4646

4747
class FieldOutOfBoundError(RuntimeError):
@@ -51,7 +51,7 @@ class FieldOutOfBoundError(RuntimeError):
5151

5252

5353
def _raise_field_out_of_bound_error(z, y, x):
54-
raise FieldOutOfBoundError(f"Field sampled out-of-bound, at (z={z}, lat={y}, lon={x})")
54+
raise FieldOutOfBoundError(f"Field sampled out-of-bound, at (z={z}, y={y}, x={x})")
5555

5656

5757
class FieldOutOfBoundSurfaceError(RuntimeError):
@@ -65,7 +65,7 @@ def format_out(val):
6565
return "unknown" if val is None else val
6666

6767
raise FieldOutOfBoundSurfaceError(
68-
f"Field sampled out-of-bound at the surface, at (z={format_out(z)}, lat={format_out(y)}, lon={format_out(x)})"
68+
f"Field sampled out-of-bound at the surface, at (z={format_out(z)}, y={format_out(y)}, x={format_out(x)})"
6969
)
7070

7171

@@ -82,7 +82,7 @@ class GridSearchingError(RuntimeError):
8282

8383

8484
def _raise_grid_searching_error(z, y, x):
85-
raise GridSearchingError(f"Grid searching failed at (z={z}, lat={y}, lon={x})")
85+
raise GridSearchingError(f"Grid searching failed at (z={z}, y={y}, x={x})")
8686

8787

8888
class GeneralError(RuntimeError):
@@ -92,7 +92,7 @@ class GeneralError(RuntimeError):
9292

9393

9494
def _raise_general_error(z, y, x):
95-
raise GeneralError(f"General error occurred at (z={z}, lat={y}, lon={x})")
95+
raise GeneralError(f"General error occurred at (z={z}, y={y}, x={x})")
9696

9797

9898
class OutsideTimeInterval(RuntimeError):

0 commit comments

Comments
 (0)