Skip to content

Commit

Permalink
Change error message
Browse files Browse the repository at this point in the history
  • Loading branch information
htysc committed Dec 8, 2023
1 parent f3eb179 commit 0540346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/services/partnerNetwork/referrals.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async function sendReferral(req, res, next) {
clearTimeout(timeout);

if (response.status >= 400 && response.status < 600) {
return res.status(response.status).json({message: 'Bad response from receiver: ' + response.status});
return res.status(response.status).json({message: 'Bad response from receiver: ' + response.status + (response.message ? ': ' + response.message : null)});
}
return res.status(202).json({success: true, message: `Successfully created and sent a referral`});
} catch (e) {
Expand Down

0 comments on commit 0540346

Please sign in to comment.