Skip to content

Commit

Permalink
adds breaks to cases on host controller switch (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nefarious46 authored Mar 21, 2024
1 parent 9e11f5d commit 2c755ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/teragrep/cfe18/handlers/HostController.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ public ResponseEntity<?> getHostFile(@PathVariable("id") int id) {
switch (state) {
case "45000":
jsonErr.put("message", "Record does not exist with the given host id");
break;
case "45100":
jsonErr.put("message", "Host given is a hub");
break;
}
} else if (ex.getMessage().equals("Different host_type")) {
LOGGER.error(ex.getMessage());
Expand Down

0 comments on commit 2c755ff

Please sign in to comment.