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

Fixed the JSON::ParserError rescue message

I guess this message may be more appropriate for this error.
This commit is contained in:
Pierre MONTAGNIER
2013-09-22 00:26:29 +02:00
parent e6532aa100
commit a7df62a0a5

View File

@@ -40,7 +40,7 @@ module Haste
abort "failure uploading: #{response.code}"
end
rescue JSON::ParserError => e
abort "failure uploading: #{response.code}"
abort "failure parsing response: #{e.message}"
rescue Errno::ECONNREFUSED => e
abort "failure connecting: #{e.message}"
end