Skip to content

Commit

Permalink
chore(backend): use code from OpenPaymentsClientError
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurapov committed Oct 31, 2024
1 parent b44c766 commit 9382abb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ async function createIncomingPayment(
{
...baseErrorLog,
errStatus: err.status,
errCode: err.code,
errDescription: err.description
},
`Retrying request after receiving ${err.status} error code when creating incoming payment`
Expand All @@ -161,6 +162,7 @@ async function createIncomingPayment(
{
...baseErrorLog,
errStatus: err.status,
errCode: err.code,
errDescription: err.description,
errMessage: err.message,
errValidation: err.validationErrors
Expand Down Expand Up @@ -258,6 +260,7 @@ async function getIncomingPayment(
{
...baseErrorLog,
errStatus: err.status,
errCode: err.code,
errDescription: err.description
},
`Retrying request after receiving ${err.status} error code when getting incoming payment`
Expand All @@ -276,6 +279,7 @@ async function getIncomingPayment(
{
...baseErrorLog,
errStatus: err.status,
errCode: err.code,
errDescription: err.description,
errMessage: err.message,
errValidation: err.validationErrors
Expand Down

0 comments on commit 9382abb

Please sign in to comment.