Skip to content

Commit

Permalink
need to handle connection to payment better
Browse files Browse the repository at this point in the history
  • Loading branch information
skript023 committed Apr 5, 2024
1 parent f3679a2 commit 655ce0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/payment/services/payment_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ namespace gaboot

auto res = cpr::Post(m_url, body, header);

if (res.text.empty()) throw std::runtime_error("UNKNOWN ERROR 01 - Check your internet access");
if (!res.status_code) throw std::runtime_error("UNKNOWN ERROR 01 - Check your internet access");

auto json = nlohmann::ordered_json::parse(res.text);

Expand Down

0 comments on commit 655ce0a

Please sign in to comment.