Skip to content

Commit

Permalink
Merge pull request Sunbird-RC#393 from chaitrali-r/main
Browse files Browse the repository at this point in the history
Error Message Change
  • Loading branch information
Pratikshakhandagale authored Aug 9, 2023
2 parents 0f8bbc1 + df3b683 commit 97ad74f
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions donor-registry/src/app/forms/forms.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2430,18 +2430,18 @@ export class FormsComponent implements OnInit {
checkESignStatus = false;

console.log(res)
}, (err) => {
if (err.code == "2") {
checkESignStatus = false;
this.toastMsg.error("Error", err.errors);
} else if (err.code == "3") {
if (err.preventThirdParty == "true") {
checkESignStatus = false;
this.toastMsg.error("Error", err.message);
}
}
console.log(err);
});
}, ({ error: err }) => {
if (err?.code === "2") {
checkESignStatus = false;
this.toastMsg.error("Error", err?.errors);
} else if (err.code === "3") {
if (err?.preventThirdParty === true) {
checkESignStatus = false;
this.toastMsg.error("Error", err?.message);
}
}
console.log(err);
});
} catch (e) {
console.log(e)
}
Expand Down Expand Up @@ -2584,18 +2584,18 @@ export class FormsComponent implements OnInit {
checkESignStatus = false;
console.log(res)

}, (err) => {
if (err.code == "2") {
checkESignStatus = false;
this.toastMsg.error("Error", err.errors);
} else if (err.code == "3") {
if (err.preventThirdParty == "true") {
checkESignStatus = false;
this.toastMsg.error("Error", err.message);
}
}
console.log(err)
});
}, ({ error: err }) => {
if (err?.code === "2") {
checkESignStatus = false;
this.toastMsg.error("Error", err?.errors);
} else if (err.code === "3") {
if (err?.preventThirdParty === true) {
checkESignStatus = false;
this.toastMsg.error("Error", err?.message);
}
}
console.log(err);
});
} catch (e) {
console.log(e)
}
Expand Down

0 comments on commit 97ad74f

Please sign in to comment.