aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src
diff options
context:
space:
mode:
authorAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-18 14:33:29 -0400
committerAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-18 14:33:29 -0400
commit6b3c96302f3fc1aa5ad24676f5891dc2bb696414 (patch)
tree5118bf39546ecb9569a67e0c97a88a0361d4ee6f /ufund-ui/src
parent054857f51d1397d1122219e407a25c18472733f6 (diff)
parentac33cc6884c0d3b3e112e6dde6154aa123016d93 (diff)
downloadJellySolutions-6b3c96302f3fc1aa5ad24676f5891dc2bb696414.tar.gz
JellySolutions-6b3c96302f3fc1aa5ad24676f5891dc2bb696414.tar.bz2
JellySolutions-6b3c96302f3fc1aa5ad24676f5891dc2bb696414.zip
Merge branch 'funding_basket' of https://github.com/RIT-SWEN-261-02/team-project-2245-swen-261-02-2b-jellysolutions into funding_basket
Diffstat (limited to 'ufund-ui/src')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts
index 45346b4..13eddad 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts
@@ -106,6 +106,7 @@ export class CupboardComponent implements OnInit {
console.log(need.id, need, "need updated");
this.cupboardService.updateNeed(need.id, need)
.pipe(catchError((ex, r) => {
+ console.log(ex.status);
if (ex.status == 500) {
this.statusText.next("Fields cannot be blank");
} else if (ex.status == 400) {
@@ -141,6 +142,7 @@ export class CupboardComponent implements OnInit {
console.log("form submitted. creating need: ", need);
this.cupboardService.createNeed(need)
.pipe(catchError((ex, r) => {
+ console.log(ex.status);
if (ex.status == 500) {
this.statusText.next("Fields cannot be blank");
} else if (ex.status == 400) {
@@ -203,6 +205,7 @@ let friendlyHttpStatus: { [key: number]: string } = {
416: 'Requested Range Not Satisfiable',
417: 'Expectation Failed',
418: 'I\'m a teapot',
+ 422: 'Unprocessable Entity',
429: 'Too Many Requests',
500: 'Internal Server Error',
501: 'Not Implemented',