lib/coderunner/run.rb in coderunner-0.13.31 vs lib/coderunner/run.rb in coderunner-0.13.32
- old
+ new
@@ -989,10 +989,12 @@
def executable_name
File.basename(@executable||=@runner.executable)
end
def executable_location
- File.dirname(@executable||=@runner.executable)
+ @executable||=@runner.executable
+ raise "No executable" unless @executable
+ File.dirname(@executable)
end
def update_in_queue
unless @status == :Queueing
raise 'Can only updated runs whose status is :Queueing'