Skip to content

Commit

Permalink
Merged pull request #19 from wimm/invalid_endpoints.
Browse files Browse the repository at this point in the history
Raise an EwsError exception when parsing an empty response
  • Loading branch information
zenchild committed Apr 27, 2011
2 parents 92bacdb + 6ab2657 commit 4913940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/soap/handsoap/ews_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ def build!(node, opts = {}, &block)

def parse!(response, opts = {})
return response if @@raw_soap
raise EwsError, "Can't parse an empty response. Please check your endpoint." if(response.nil?)
EwsParser.new(response).parse(opts)
end

Expand Down

0 comments on commit 4913940

Please sign in to comment.