Commit 8678157b authored by M. Rehan Abbasi's avatar M. Rehan Abbasi
Browse files

validate category from grid map file

parent 5d912777
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -912,6 +912,12 @@ func (tm *TrafficMgr) PopulatePoaLoad(poaNameList []string, gpsCoordinates [][]f
			return err
		}

		if _, ok := categoriesLoads[category]; !ok {
			err = errors.New("Category " + category + " not present in the categories table")
			log.Error(err.Error())
			return err
		}

		err = tm.CreatePoaLoad(poaName, category)
		if err != nil {
			log.Error(err.Error())