Skip to content
Snippets Groups Projects
Commit 935d05fa authored by Kryštof-Mikuláš Štys's avatar Kryštof-Mikuláš Štys
Browse files

Merge branch 'flight-error-text-fix' into 'develop'

[Enh] makes the flight-stewards error message better

See merge request !94
parents a94c94a7 6c0a0921
No related branches found
No related tags found
2 merge requests!94[Enh] makes the flight-stewards error message better,!92M3
......@@ -148,7 +148,7 @@ public class FlightFacadeImpl extends DomainFacadeImpl<Flight, FlightInsertDto,
private void checkCorrectArguments(String token, List<StewardFindDto> stewards, List<UUID> stewards2,
UUID airlineId, UUID planeId) {
if (stewards2.size() != (stewards.size())) {
throw new ObjectNotFoundException("Unknown steward was provided");
throw new ObjectNotFoundException("Unknown or duplicate steward was provided");
}
if (airlineService.retrieve(airlineId, token) == null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment