From f58a455a3d12aaf91d24810a048b86b1899117c8 Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 11 Dec 2024 16:05:06 +0100 Subject: [PATCH] Fix copy paste error Co-authored-by: Stefan Majewsky --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 3498169..46fd558 100644 --- a/main.go +++ b/main.go @@ -131,7 +131,7 @@ func handlerMetrics(w http.ResponseWriter, r *http.Request) { if t, err := time.ParseDuration(query.Get("duration")); err == nil { if t < 0 { - http.Error(w, "high_drift cannot be negative", http.StatusBadRequest) + http.Error(w, "duration cannot be negative", http.StatusBadRequest) return } d = t