Skip to content

Commit 868cc20

Browse files
committed
Fixed text of exception
1 parent d4dcfcc commit 868cc20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/scriptbasic/utility/functions/UtilityFunctions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ public static Long length(final Object arg) {
149149
@BasicFunction(classification = Utility.class)
150150
public static Double cdbl(final Object arg) throws BasicRuntimeException {
151151
if (arg == null) {
152-
throw new BasicRuntimeException("NULL cannot be converted to double");
152+
throw new BasicRuntimeException("undef cannot be converted to double");
153153
}
154154
return BasicDoubleValue.asDouble(RightValueUtility.createRightValue(arg));
155155
}
156156

157157
@BasicFunction(classification = Utility.class)
158158
static public Long clng(final Object arg) throws BasicRuntimeException {
159159
if (arg == null) {
160-
throw new BasicRuntimeException("NULL cannot be converted to long");
160+
throw new BasicRuntimeException("undef cannot be converted to long");
161161
}
162162
return BasicLongValue.asLong(RightValueUtility.createRightValue(arg));
163163
}

0 commit comments

Comments
 (0)