Skip to content

Commit 0f292ec

Browse files
committed
Merge pull request #515 from soulcutter/patch-1
Improve AtomicFixnum type-checking error message
2 parents 236bf06 + bbefd31 commit 0f292ec

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)