lib/bbiff/executable.rb in bbiff-0.3.1 vs lib/bbiff/executable.rb in bbiff-0.3.2

- old
+ new

@@ -123,11 +123,11 @@ sleep 1 end start_no = thread.last + 1 - if start_no >= thread_stop + if start_no > thread_stop out.puts "スレッドストップ" break end delay.times do |i| @@ -174,11 +174,14 @@ end begin thread = Bbs::create_thread(url) @settings.current['thread_url'] = url + rescue Bbs::Downloader::DownloadFailure => e + STDERR.puts "#{e.response.code} #{e.response.msg}: #{e.response.uri}" + exit 1 rescue => e - STDERR.puts e + STDERR.puts e.message exit 1 end if thread.nil? STDERR.puts "スレッドのURLとして解釈できませんでした。(#{url})" exit 1