summaryrefslogtreecommitdiff
path: root/lib/rbot/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/utils.rb')
-rw-r--r--lib/rbot/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/utils.rb b/lib/rbot/utils.rb
index a1a8c484..75277c51 100644
--- a/lib/rbot/utils.rb
+++ b/lib/rbot/utils.rb
@@ -33,7 +33,7 @@ module Irc
$stderr = $stdout
exec(command, *args)
rescue Exception => e
- puts "exec of #{command} led to exception: #{e}"
+ puts "exec of #{command} led to exception: #{e.inspect}"
Kernel::exit! 0
end
puts "exec of #{command} failed"
@@ -75,7 +75,7 @@ module Irc
}
rescue => e
# cheesy for now
- $stderr.puts "Utils.http_get exception: #{e}, while trying to get #{uristr}"
+ error "Utils.http_get exception: #{e.inspect}, while trying to get #{uristr}"
return nil
end
end