From e319a62f5243aec6d4e07c98965e8c7b5ff1365d Mon Sep 17 00:00:00 2001 From: Emerick Rogul Date: Tue, 13 Apr 2021 14:21:36 -0400 Subject: [PATCH] Return LEDGER_ERROR when claim endpoint returns 404 --- .../src/bat/ledger/internal/bitflyer/bitflyer_authorization.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/bitflyer/bitflyer_authorization.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/bitflyer/bitflyer_authorization.cc index 8089efe8775b..534b3d3b64f6 100644 --- a/vendor/bat-native-ledger/src/bat/ledger/internal/bitflyer/bitflyer_authorization.cc +++ b/vendor/bat-native-ledger/src/bat/ledger/internal/bitflyer/bitflyer_authorization.cc @@ -192,7 +192,7 @@ void BitflyerAuthorization::OnClaimWallet( if (result != type::Result::LEDGER_OK) { BLOG(0, "Couldn't claim wallet"); - callback(result, {}); + callback(type::Result::LEDGER_ERROR, {}); return; }