Merge branch 'dev' into unique-array-custom-api
This commit is contained in:
commit
0d2f5a818b
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue