Permalink
Browse files

Catch exceptions so they show up on the shell

  • Loading branch information...
1 parent 0dc615e commit 23517b00dbb2e723e8712101d30824dd956bac09 Jason Roelofs committed Nov 13, 2009
Showing with 6 additions and 4 deletions.
  1. +6 −4 bin/talker_bot
View
@@ -14,7 +14,9 @@ end
require 'talker_bot'
-bot = TalkerBot.new :room => ARGV.first
-bot.instance_eval(File.read(config), config, 0)
-bot.connect
-bot.run
+EM.run {
+ bot = TalkerBot.new :room => ARGV.first
+ bot.instance_eval(File.read(config), config, 0)
+ bot.connect
+ bot.run
+}

0 comments on commit 23517b0

Please sign in to comment.