Commit 233a812f00632fa0c09765f96056232245076f2e

Con Kolivas 2012-05-06T13:30:27

Give cgminer -T message only if curses is in use.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 5ab2a37..0a36ab7 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4825,7 +4825,8 @@ int main(int argc, char *argv[])
 				break;
 			case -1:
 				applog(LOG_WARNING, "Error in configuration file, partially loaded.");
-				applog(LOG_WARNING, "Start cgminer with -T to see what failed to load.");
+				if (use_curses)
+					applog(LOG_WARNING, "Start cgminer with -T to see what failed to load.");
 				break;
 			default:
 				break;