Merge branch 'dev' into unique-array-custom-api

This commit is contained in:
Svilen Markov 2025-04-13 16:00:39 +01:00 committed by GitHub
commit 0d2f5a818b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,6 +86,11 @@ func cliSensorsPrint() int {
tempSensors, err := sensors.SensorsTemperatures() tempSensors, err := sensors.SensorsTemperatures()
if err != nil { if err != nil {
fmt.Printf("Failed to retrieve list of sensors: %v\n", err) fmt.Printf("Failed to retrieve list of sensors: %v\n", err)
if warns, ok := err.(*sensors.Warnings); ok {
for _, w := range warns.List {
fmt.Printf(" - %v\n", w)
}
}
return 1 return 1
} }