Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/dashjoin/jsonata/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,7 @@ public static void error(String message) throws Throwable {
*/
public static void assertFn(boolean condition, String message) throws Throwable {
if(!condition) {
throw new JException("D3141", -1, "$assert() statement failed");
throw new JException("D3141", -1, message!=null ? message : "$assert() statement failed");
// message: message || "$assert() statement failed"
}
}
Expand Down