Skip to content

Commit

Permalink
Merge branch 'release/v1.16.0' of https://github.com/bcgov/EDUC-GRAD-…
Browse files Browse the repository at this point in the history
…ADMIN into grad2-689
  • Loading branch information
suzalflueck committed Mar 13, 2024
2 parents 9761f38 + 880f7ed commit d8e37cd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions frontend/src/components/Header/BCHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,12 @@ export default {
.then((response) => {
if (response.data) {
if (response.data.length == 0) {
throw new Error("Student not found");
throw new Error(
`Student ${this.penInput} cannot be found on the GRAD or PEN database`
);
} else if (response.data[0].program == null || "") {
throw new Error(
"Student exists in PEN but does not have a GRAD system record."
`Student ${this.penInput} exists in PEN but does not have a GRAD system record.`
);
}
this.studentStore.unsetStudent();
Expand All @@ -277,12 +279,9 @@ export default {
})
.catch((error) => {
// eslint-disable-next-line
console.log("BCHeader: " + error);
console.error("Header Search: ", error.message);
this.searchLoading = false;
this.showNotification(
"danger",
`Student ${this.penInput} cannot be found on the GRAD or PEN database`
);
this.showNotification("danger", error.message);
})
.finally(() => {
this.penInput = "";
Expand Down

0 comments on commit d8e37cd

Please sign in to comment.