]> git.sur5r.net Git - i3/i3status/commitdiff
Improve error message when the cpu temperature cannot be read
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 9 May 2012 16:39:41 +0000 (18:39 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 9 May 2012 16:39:41 +0000 (18:39 +0200)
src/print_cpu_temperature.c

index 742a102618eac161220fcbd6444d8acd2ac3c539..7797f061dc9cacfa090784a0db592f896271876b 100644 (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);
 }