Commit 619c57a4 authored by supermikii's avatar supermikii
Browse files

fix misleading err msg location srv periodic sub

parent 2d976750
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2454,9 +2454,9 @@ func periodicSubPost(w http.ResponseWriter, r *http.Request) {
		return
	}

	if periodicSub.Frequency == 0 {
		log.Error("Mandatory Frequency parameter not present")
		http.Error(w, "Mandatory Frequency parameter not present", http.StatusBadRequest)
	if periodicSub.Frequency == 0 || periodicSub.Frequency < 0 {
		log.Error("Mandatory Frequency parameter missing or Frequency value should be 1 or above")
		http.Error(w, "Mandatory Frequency parameter missing or Frequency value should be 1 or above", http.StatusBadRequest)
		return
	}
	/*	if periodicSub.RequestedAccuracy == 0 {