Fix Sprintf

This commit is contained in:
Christoph Petrausch
2020-09-19 23:41:55 +02:00
parent 31b233b4b0
commit dc07489237

View File

@@ -132,7 +132,7 @@ func mustShowVersion() {
func mustMQTTClientID() string {
host, err := os.Hostname()
if err != nil {
panic(fmt.Sprintf("failed to get hostname: %w", err))
panic(fmt.Sprintf("failed to get hostname: %v", err))
}
pid := os.Getpid()
return fmt.Sprintf("%s-%d", host, pid)