Skip to content

Commit 0c4fcdf

Browse files
committed
Update ArgumentError message for Ractor.select
1 parent b14f2f0 commit 0c4fcdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bootstraptest/test_ractor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test n
316316
} unless (ENV.key?('TRAVIS') && ENV['TRAVIS_CPU_ARCH'] == 'arm64') # https://bugs.ruby-lang.org/issues/17878
317317

318318
# Exception for empty select
319-
assert_match /specify at least one ractor/, %q{
319+
assert_match /specify at least one Ractor::Port or Ractor/, %q{
320320
begin
321321
Ractor.select
322322
rescue ArgumentError => e

ractor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def self.count
267267
#
268268
# TBD
269269
def self.select(*ports)
270-
raise ArgumentError, 'specify at least one ractor or `yield_value`' if ports.empty?
270+
raise ArgumentError, 'specify at least one Ractor::Port or Ractor' if ports.empty?
271271

272272
monitors = {} # Ractor::Port => Ractor
273273

0 commit comments

Comments
 (0)