mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-19 18:11:28 +00:00
@@ -25,7 +25,7 @@ module Haste
|
|||||||
data = JSON.parse(response.body)
|
data = JSON.parse(response.body)
|
||||||
STDOUT.puts "#{server}/#{data['key']}"
|
STDOUT.puts "#{server}/#{data['key']}"
|
||||||
else
|
else
|
||||||
STDERR.puts "failure uploading: #{res.status}"
|
STDERR.puts "failure uploading: #{response.code}"
|
||||||
end
|
end
|
||||||
rescue RuntimeError, JSON::ParserError => e
|
rescue RuntimeError, JSON::ParserError => e
|
||||||
STDERR.puts "failure uploading: #{response.code}"
|
STDERR.puts "failure uploading: #{response.code}"
|
||||||
|
|||||||
Reference in New Issue
Block a user