Skip to content

Commit 4ba36c7

Browse files
committed
fix error handling
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 837efac commit 4ba36c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

probe.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func handleProbeRequest(w http.ResponseWriter, r *http.Request) {
3737
} else {
3838
probeLogger.Errorln(err.Error())
3939
http.Error(w, err.Error(), http.StatusBadRequest)
40+
return
4041
}
4142
}
4243

@@ -139,6 +140,7 @@ func handleProbeRequest(w http.ResponseWriter, r *http.Request) {
139140
} else {
140141
contextLogger.Errorln(queryErr.Error())
141142
http.Error(w, queryErr.Error(), http.StatusBadRequest)
143+
return
142144
}
143145

144146
*RequestOptions.Skip += requestQueryTop

0 commit comments

Comments
 (0)