safe_exec fixes
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 14 Oct 2010 08:35:26 +0000 (10:35 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 14 Oct 2010 08:39:23 +0000 (10:39 +0200)
commit87d2affc0fbe7cf864fdad4eca506d9d06a0de0c
tree7125dd3bd9a8fec474accd60bff36b6f221a08a2
parent0de1116a4d27cfdb2a0d4e8df00f16527e1566bd
safe_exec fixes

Some plugins (ri, fortune) wrap safe_exec in begin/rescue blocks that
did not get triggered because the exceptions from the execution were
caught in the popen block (and would never get exposed anyway). Fix this
by raising if $? does not indicate success.
lib/rbot/core/utils/utils.rb