summaryrefslogtreecommitdiff
path: root/lib/irb/ext/multi-irb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/ext/multi-irb.rb')
-rw-r--r--lib/irb/ext/multi-irb.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/ext/multi-irb.rb b/lib/irb/ext/multi-irb.rb
index 86569ae333..e815889383 100644
--- a/lib/irb/ext/multi-irb.rb
+++ b/lib/irb/ext/multi-irb.rb
@@ -9,7 +9,7 @@
#
#
#
-IRB.fail CanNotGoMultiIrbMode unless defined?(Thread)
+IRB.fail CantShiftToMultiIrbMode unless defined?(Thread)
require "thread"
module IRB
@@ -54,7 +54,7 @@ module IRB
def switch(key)
th, irb = search(key)
IRB.fail IrbAlreadyDead unless th.alive?
- IRB.fail IrbSwitchToCurrentThread if th == Thread.current
+ IRB.fail IrbSwitchedToCurrentThread if th == Thread.current
@current_job = irb
th.run
Thread.stop