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:
@@ -40,7 +40,7 @@ module Haste
|
|||||||
abort "failure uploading: #{response.code}"
|
abort "failure uploading: #{response.code}"
|
||||||
end
|
end
|
||||||
rescue JSON::ParserError => e
|
rescue JSON::ParserError => e
|
||||||
abort "failure uploading: #{response.code}"
|
abort "failure parsing response: #{e.message}"
|
||||||
rescue Errno::ECONNREFUSED => e
|
rescue Errno::ECONNREFUSED => e
|
||||||
abort "failure connecting: #{e.message}"
|
abort "failure connecting: #{e.message}"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user