Commit af52799c by John Kessenich

Errors: Have a whole set of tool-level error messages report to stderr.

parent a372a3ed
...@@ -261,7 +261,7 @@ bool SetConfigFile(const std::string& name) ...@@ -261,7 +261,7 @@ bool SetConfigFile(const std::string& name)
// //
void Error(const char* message) void Error(const char* message)
{ {
printf("%s: Error %s (use -h for usage)\n", ExecutableName, message); fprintf(stderr, "%s: Error %s (use -h for usage)\n", ExecutableName, message);
exit(EFailUsage); exit(EFailUsage);
} }
...@@ -1090,7 +1090,7 @@ int C_DECL main(int argc, char* argv[]) ...@@ -1090,7 +1090,7 @@ int C_DECL main(int argc, char* argv[])
threads[t] = std::thread(CompileShaders, std::ref(workList)); threads[t] = std::thread(CompileShaders, std::ref(workList));
if (threads[t].get_id() == std::thread::id()) if (threads[t].get_id() == std::thread::id())
{ {
printf("Failed to create thread\n"); fprintf(stderr, "Failed to create thread\n");
return EFailThreadCreate; return EFailThreadCreate;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment