git » prometheus-expvar-exporter » commit 083a3ee

Add missing parameter to fmt.Sprintf

author Alberto Bertogli
2023-02-19 11:00:34 UTC
committer Alberto Bertogli
2023-02-19 11:00:34 UTC
parent 61b28128341643748abf496db9927fc6716ca745

Add missing parameter to fmt.Sprintf

main.go +1 -1

diff --git a/main.go b/main.go
index 3771ab5..8ecfbc8 100644
--- a/main.go
+++ b/main.go
@@ -178,7 +178,7 @@ func valToFloat(v interface{}) float64 {
 		}
 		return 0.0
 	}
-	panic(fmt.Sprintf("unexpected value type: %#v"))
+	panic(fmt.Sprintf("unexpected value type: %#v", v))
 }
 
 const indexHTML = `<!DOCTYPE html>