Skip to content

Commit

Permalink
Add error handling to batch requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy-W-Developer committed Aug 4, 2024
1 parent 9e15d2f commit 66d4a0e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ export class AdminHomePageComponent implements OnInit {
next: () => {
this.fetchAccountRequests();
},
error: (resp: ErrorMessageOutput) => {
invalidLines.push(instructorDetail);
this.instructorDetails = invalidLines.join('\r\n');
this.statusMessageService.showErrorToast(resp.error.message);
},
});
}
this.instructorDetails = invalidLines.join('\r\n');
Expand Down

0 comments on commit 66d4a0e

Please sign in to comment.