1
0
mirror of https://github.com/seejohnrun/haste-client.git synced 2025-12-16 00:35:56 +00:00

Merge pull request #3 from grampajoe/master

More error message errors
This commit is contained in:
John Crepezzi
2011-12-19 21:30:56 -08:00

View File

@@ -25,7 +25,7 @@ module Haste
data = JSON.parse(response.body)
STDOUT.puts "#{server}/#{data['key']}"
else
STDERR.puts "failure uploading: #{res.status}"
STDERR.puts "failure uploading: #{response.code}"
end
rescue RuntimeError, JSON::ParserError => e
STDERR.puts "failure uploading: #{response.code}"