summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-05-09 18:39:41 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-05-09 18:39:41 +0200
commit4ef47541b90275761e551c01f83948447c405e77 (patch)
tree492d1522051791e40c5f74bac3bb8d7026264943
parent4ddd115af8e6247788c78dc3630d37f2f4493e03 (diff)
Improve error message when the cpu temperature cannot be read
-rw-r--r--src/print_cpu_temperature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_cpu_temperature.c b/src/print_cpu_temperature.c
index 742a102..7797f06 100644
--- a/src/print_cpu_temperature.c
+++ b/src/print_cpu_temperature.c
@@ -113,5 +113,5 @@ void print_cpu_temperature_info(yajl_gen json_gen, char *buffer, int zone, const
return;
error:
#endif
- (void)fputs("Cannot read temperature\n", stderr);
+ (void)fputs("i3status: Cannot read temperature. Verify that you have a thermal zone in /sys/class/thermal or disable the cpu_temperature module in your i3status config.\n", stderr);
}