We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78ce14c + cbe455c commit ce1ed1bCopy full SHA for ce1ed1b
src/main/java/com/dashjoin/jsonata/Functions.java
@@ -1891,7 +1891,7 @@ public static void error(String message) throws Throwable {
1891
*/
1892
public static void assertFn(boolean condition, String message) throws Throwable {
1893
if(!condition) {
1894
- throw new JException("D3141", -1, "$assert() statement failed");
+ throw new JException("D3141", -1, message!=null ? message : "$assert() statement failed");
1895
// message: message || "$assert() statement failed"
1896
}
1897
0 commit comments