added another error message
This commit is contained in:
parent
b0ee8a75f6
commit
7cfae18552
@ -231,6 +231,9 @@ public class Controller {
|
||||
|
||||
int i = cache.getStationen().indexOf(station);
|
||||
|
||||
if (i == 0) {
|
||||
return ResponseEntity.status(400).body("The scanned station isn´t the correct following station");
|
||||
}
|
||||
|
||||
if (cache.getStationen().get(i - 1).equals(aktuelleStation)) {
|
||||
bearbeitet.setAktuelleStation(station);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user