Skip to content

Commit

Permalink
updated update-server.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
frsyuki committed Aug 25, 2014
1 parent b9aeefa commit 11a64e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
@@ -1,4 +1,5 @@
source 'https://rubygems.org'
ruby '1.9.3'
gem 'octokit', '~> 3.3.1'
gem 'faraday', '~> 0.9.0'
gem 'httpclient', '~> 2.4.0'
Expand Down
7 changes: 6 additions & 1 deletion update-server.rb
Expand Up @@ -8,6 +8,11 @@
get '/update' do
headers 'Content-Type' => 'text/plain'
stream do |out|
update_index(Logger.new(out))
begin
update_index(Logger.new(out))
rescue => e
out.puts e.to_s
out.write e.backtrace
end
end
end

0 comments on commit 11a64e5

Please sign in to comment.