lib/build/task.rb in build-1.0.6 vs lib/build/task.rb in build-1.0.7

- old
+ new

@@ -28,12 +28,18 @@ def initialize(task, arguments, status) @task = task @arguments = arguments @status = status - @command_name = arguments.find{|part| part.kind_of? String} - - super "#{@command_name.inspect} exited with status #{@status}" + super "#{File.basename(executable_name).inspect} exited with status #{@status.to_i}" + end + + def executable_name + if @arguments[0].kind_of? Hash + @arguments[1] + else + @arguments[0] + end end attr :task attr :arguments attr :status