1
0
mirror of https://github.com/seejohnrun/haste-client.git synced 2026-01-30 12:37:10 +00:00

More error message errors

This commit is contained in:
Joe Friedl
2011-12-19 14:37:38 -06:00
parent 7599baa5c5
commit 5c9f2f213f

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}"