lib/td/command/sched.rb in td-0.10.48 vs lib/td/command/sched.rb in td-0.10.49
- old
+ new
@@ -249,9 +249,10 @@
jobs = client.run_schedule(name, t.to_i, num)
rescue NotFoundError
cmd_debug_error $!
$stderr.puts "Schedule '#{name}' does not exist."
$stderr.puts "Use '#{$prog} sched:list' to show list of the schedules."
+ exit 1
end
rows = []
jobs.each_with_index {|job,i|
rows << {:JobID => job.job_id, :Time => job.scheduled_at ? job.scheduled_at.localtime : nil}