summaryrefslogtreecommitdiff
path: root/lib/rbot/core/utils/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/core/utils/utils.rb')
-rw-r--r--lib/rbot/core/utils/utils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index c47601c1..92df73ff 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -284,11 +284,11 @@ module ::Irc
$stderr.reopen($stdout)
exec(command, *args)
rescue Exception => e
- puts "exec of #{command} led to exception: #{e.pretty_inspect}"
- Kernel::exit! 0
+ puts "exception #{e.pretty_inspect} trying to run #{command}"
+ Kernel::exit! 1
end
puts "exec of #{command} failed"
- Kernel::exit! 0
+ Kernel::exit! 1
end
}
end