Skip to content

Commit

Permalink
Added debug logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiseev committed Jan 22, 2025
1 parent 1623ad4 commit 83e5ba0
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 83e5ba0

Please sign in to comment.