lib/rundock/backend.rb in rundock-1.0.8 vs lib/rundock/backend.rb in rundock-1.1.0
- old
+ new
@@ -69,12 +69,10 @@
Logger.info(result.stdout.strip) unless result.stdout.strip.blank?
Logger.debug("errexit: #{exec_options[:errexit]}")
Logger.debug("exit status: #{exit_status}")
end
- if exec_options[:errexit] && exit_status != 0
- raise CommandResultStatusError
- end
+ raise CommandResultStatusError if exec_options[:errexit] && exit_status != 0
result
end
def parse(options)