aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/AuthController.java
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-03-31 20:47:10 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-03-31 20:47:10 -0400
commit94bbc8feb12fec210dae76ff90b6a782829a9c04 (patch)
treedefa0c8a2b4f0ee0b2bc147f386bb0373965b1cd /ufund-api/src/main/java/com/ufund/api/ufundapi/controller/AuthController.java
parentcd8b846a4455aba7664cc03e219f471d251ff9bf (diff)
parentcb5be32bf0d050cc1fd37d7cc9b4c51e1c51fffe (diff)
downloadJellySolutions-94bbc8feb12fec210dae76ff90b6a782829a9c04.tar.gz
JellySolutions-94bbc8feb12fec210dae76ff90b6a782829a9c04.tar.bz2
JellySolutions-94bbc8feb12fec210dae76ff90b6a782829a9c04.zip
Merge branch 'list-and-cupboard-component-refactor' into css
# Conflicts: # ufund-ui/src/app/components/cupboard/cupboard.component.ts
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/controller/AuthController.java')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/controller/AuthController.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/AuthController.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/AuthController.java
index aa99a90..82b2c67 100644
--- a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/AuthController.java
+++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/AuthController.java
@@ -43,10 +43,10 @@ public class AuthController {
return new ResponseEntity<>(key, HttpStatus.OK);
} catch (IllegalAccessException ex) {
LOG.log(Level.WARNING, ex.getLocalizedMessage());
- return new ResponseEntity<>(HttpStatus.UNAUTHORIZED);
+ return new ResponseEntity<>(ex.getMessage(), HttpStatus.UNAUTHORIZED);
} catch (IOException ex) {
LOG.log(Level.SEVERE, ex.getLocalizedMessage());
- return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ return new ResponseEntity<>(ex.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
}
}
@@ -64,7 +64,7 @@ public class AuthController {
return new ResponseEntity<>(HttpStatus.OK);
} catch (IOException ex) {
LOG.log(Level.WARNING, ex.getLocalizedMessage());
- return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ return new ResponseEntity<>(ex.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
}
}
}