Skip to content

Commit ba0ad79

Browse files
committed
Add cmab error
1 parent 42089e3 commit ba0ad79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optimizely/cmab/cmab_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _do_fetch(url, request_body, timeout)
110110

111111
begin
112112
body = response.json
113-
rescue JSON::ParserError
113+
rescue JSON::ParserError, Optimizely::CmabInvalidResponseError => e
114114
error_message = Optimizely::Helpers::Constants::INVALID_CMAB_FETCH_RESPONSE
115115
@logger.log(Logger::ERROR, error_message)
116116
raise CmabInvalidResponseError, error_message

0 commit comments

Comments
 (0)