Skip to content

Commit

Permalink
Error message cleanup (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanikiran-wtt-egov authored Mar 9, 2021
1 parent 4ee62c1 commit 05847a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void vehicleTripReadyForDisposal(FSMRequest fsmRequest) {
List<VehicleTrip> existingVehicleTrips = getVehicleTrips(fsmRequest, "WAITING_FOR_DISPOSAL",false);
VehicleTrip scheduledTrip = null;
if(existingVehicleTrips != null ) {
throw new CustomException(FSMErrorConstants.FSM_INVALID_ACTION, "VehicleTrip Waiting for Disposal of Application No "+existingVehicleTrips.get(0).getTripDetails().get(0).getReferenceNo()+", Cannot complete this FSM Application : "+ fsmRequest.getFsm().getApplicationNo());
throw new CustomException(FSMErrorConstants.FSM_INVALID_ACTION, "VehicleTrip Waiting for Disposal of Application No "+existingVehicleTrips.get(0).getTripDetails().get(0).getReferenceNo()+", Cannot complete this FSM Application No "+ fsmRequest.getFsm().getApplicationNo());
}else {
List<VehicleTrip> scheduledTrips = getVehicleTrips(fsmRequest,"SCHEDULED",true);
if(scheduledTrips == null) {
Expand Down

0 comments on commit 05847a5

Please sign in to comment.