veritrans/veritrans-ruby

Inconsistent error message thrown

Closed this issue · 2 comments

This line throws lack of API response on the err msg

"Midtrans API is returning API error. HTTP status code: #{status_code}",

Should have throw consistent err msg with this line

"Midtrans API is returning API error. HTTP status code: #{response.status} API response: #{response.body}",

Thank you for finding and example kak,
i have done to fix the inconsitent error message
13d4791