Skip to content

Commit 114b94a

Browse files
Tara Drwenskihaileyajohnson
authored andcommitted
Improve error message
1 parent 82a64f3 commit 114b94a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cdm/core/src/main/java/ucar/nc2/ft2/coverage/CoordAxisHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ private int findCoordElementRegular(double coordValue, boolean bounded) {
100100
double lower = axis.getCoordEdge1(index);
101101
double upper = axis.getCoordEdge2(index);
102102
if (axis.isAscending()) {
103-
assert lower <= coordValue : lower + " should be le " + coordValue;
104-
assert upper >= coordValue : upper + " should be ge " + coordValue;
103+
assert lower <= coordValue : lower + " should be <= " + coordValue;
104+
assert upper >= coordValue : upper + " should be >= " + coordValue;
105105
} else {
106-
assert lower >= coordValue : lower + " should be ge " + coordValue;
107-
assert upper <= coordValue : upper + " should be le " + coordValue;
106+
assert lower >= coordValue : lower + " should be >= " + coordValue;
107+
assert upper <= coordValue : upper + " should be <= " + coordValue;
108108
}
109109
}
110110

0 commit comments

Comments
 (0)