Skip to content

Commit

Permalink
Merge pull request #34 from ONDC-Official/feature/rework
Browse files Browse the repository at this point in the history
l2 error
  • Loading branch information
extedcouD authored Jan 15, 2025
2 parents fa02170 + 493a74d commit 027bace
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/config/TRV11/on_search/on_search2/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,12 @@ export async function onSearch2Generator(
return existingPayload;
} catch (err) {
console.error(err);
delete existingPayload.message;
const errorMessage = {
error: {
code: 91201,
message:
"To & from location not serviceable by Mock Seller application",
},
code: 91201,
message: "To & from location not serviceable by Mock Seller application",
};
existingPayload.message = errorMessage;
existingPayload.error = errorMessage;
return existingPayload;
}
}

0 comments on commit 027bace

Please sign in to comment.