lib/ding_sdk/lookup.rb in ding_sdk-0.8.21 vs lib/ding_sdk/lookup.rb in ding_sdk-0.8.22

- old
+ new

@@ -52,11 +52,10 @@ if r.status == 200 if Utils.match_content_type(content_type, 'application/json') out = Utils.unmarshal_complex(r.env.response_body, ::DingSDK::Shared::LookupResponse) res.lookup_response = out end - else - + elsif r.status == 400 if Utils.match_content_type(content_type, 'application/json') out = Utils.unmarshal_complex(r.env.response_body, ::DingSDK::Shared::ErrorResponse) res.error_response = out end end