Improve error message when the cpu temperature cannot be read

This commit is contained in:
Michael Stapelberg 2012-05-09 18:39:41 +02:00
parent 4ddd115af8
commit 4ef47541b9

View File

@ -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);
}