diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-31 20:47:10 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-31 20:47:10 -0400 |
commit | 94bbc8feb12fec210dae76ff90b6a782829a9c04 (patch) | |
tree | defa0c8a2b4f0ee0b2bc147f386bb0373965b1cd /ufund-api/src/main/java/com/ufund/api/ufundapi/controller/AuthController.java | |
parent | cd8b846a4455aba7664cc03e219f471d251ff9bf (diff) | |
parent | cb5be32bf0d050cc1fd37d7cc9b4c51e1c51fffe (diff) | |
download | JellySolutions-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.java | 6 |
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); } } } |