Skip to content
Browse files

Updating script run semantics to ensure proper return status

  • Loading branch information...
1 parent 6dfb406 commit f0311b339bd7bcce03cb13751584465531a5eef1 @temujin9 temujin9 committed Oct 5, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/swineherd/script.rb
View
3 lib/swineherd/script.rb
@@ -62,8 +62,7 @@ def run mode=:hadoop
end
sh command do |ok, status|
- Log.debug("Exit status was #{ok}, result was #{res}")
- ok or raise "#{mode.to_s.capitalize} mode script failed with exit status #{ok}"
+ ok or raise "#{mode.to_s.capitalize} mode script failed with exit status #{status}"
end
end

0 comments on commit f0311b3

Please sign in to comment.
Something went wrong with that request. Please try again.