Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/sensors: fix a marshalling mistake on the error field
Previously, we were using fmt.Sprint(err) that was printing <nil> on nil error, using err.Error() and setting the field only if the error is not nil is more appropriate. Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
- Loading branch information