Skip to content

Commit bbefd31

Browse files
committed
Improve error message
`rubyFixnumToLong` is used in increments/updates in addition to initialization so the error message here should be more generic.
1 parent 236bf06 commit bbefd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/com/concurrent_ruby/ext/JavaAtomicFixnumLibrary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private long rubyFixnumToLong(IRubyObject value) {
106106
RubyFixnum fixNum = (RubyFixnum) value;
107107
return fixNum.getLongValue();
108108
} else {
109-
throw getRuntime().newArgumentError("initial value must be a Fixnum");
109+
throw getRuntime().newArgumentError("value must be a Fixnum");
110110
}
111111
}
112112
}

0 commit comments

Comments
 (0)