Commit 9f69165b authored by Guolin Ke's avatar Guolin Ke
Browse files

format error message.

parent 3f14f33c
......@@ -77,7 +77,8 @@ public:
vsprintf(str_buf, format, val);
#endif
va_end(val);
fprintf(stderr, str_buf);
fprintf(stderr, "[LightGBM] [Fatal] %s\n", str_buf);
fflush(stderr);
if (UseException()) {
throw std::runtime_error(std::string(str_buf));
} else {
......
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