Skip to content

Commit

Permalink
Merge pull request #38 from spryker/added-loger-for-oa
Browse files Browse the repository at this point in the history
Added debug logs.
  • Loading branch information
dmiseev authored Jan 22, 2025
2 parents 1623ad4 + 83e5ba0 commit ab6b662
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ export class SharedCartReorderScenario extends AbstractScenario {

this.assertionsHelper.assertResponseStatus(cartReorderResponse, 201);

return JSON.parse(cartReorderResponse.body);
try {
return JSON.parse(cartReorderResponse.body);
} catch (e) {
console.log(cartReorderResponse.body);
throw Error('Failed to parse response during SharedCartReorderScenario::haveReorder()');
}
}

_getCartReorderAttributes(orderId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class SharedOrderAmendmentScenario extends AbstractScenario {
try {
return JSON.parse(cartReorderResponse.body);
} catch (e) {
console.log(cartReorderResponse.body);
throw Error('Failed to parse response during SharedOrderAmendmentScenario::haveOrderAmendment()');
}
}
Expand Down

0 comments on commit ab6b662

Please sign in to comment.