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

Merge pull request #15 from TsCl/master

Fixed the JSON::ParserError rescue message
This commit is contained in:
John Crepezzi
2013-11-08 11:03:04 -08:00

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