From 40e57a1fa528b7c54c5b36fb9ed2cfe0d12029df Mon Sep 17 00:00:00 2001 From: Andrei Navarro Date: Wed, 15 Apr 2015 15:07:17 +0800 Subject: [PATCH] error message fix --- chikka.gemspec | 4 ++-- lib/chikka.rb | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/chikka.gemspec b/chikka.gemspec index a085474..2e1e0ee 100644 --- a/chikka.gemspec +++ b/chikka.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'chikka' - s.version = '0.1.8' - s.date = '2015-03-31' + s.version = '0.1.9' + s.date = '2015-04-15' s.summary = 'A ruby interface to the Chikka SMS API' s.authors = ["Andrei Navarro"] s.email = 'andrei@eggsapps.com' diff --git a/lib/chikka.rb b/lib/chikka.rb index 232aef6..3aa0b3b 100644 --- a/lib/chikka.rb +++ b/lib/chikka.rb @@ -71,8 +71,6 @@ def parse(http_response, message_id) case response_obj.status when 200 response_obj - when 400 - raise IncompleteParametersError.new(message="#{response_obj.message} HTTP_RESP: #{response_obj.description}") when 401 raise AuthenticationError.new(message="#{response_obj.message} HTTP_RESP: #{response_obj.description}") else