]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/utils/utils.rb
utils: fix safe_exec failures
[user/henk/code/ruby/rbot.git] / lib / rbot / core / utils / utils.rb
index c47601c1baf89386d0801fb5d5458670866e7e24..92df73ff8e62af09a2943426edaf45feb2a666cb 100644 (file)
@@ -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