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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user