Commit 3f14f33c authored by Guolin Ke's avatar Guolin Ke
Browse files

always print exception msg.

parent 4d033831
......@@ -77,11 +77,11 @@ public:
vsprintf(str_buf, format, val);
#endif
va_end(val);
fprintf(stderr, str_buf);
if (UseException()) {
throw std::runtime_error(std::string(str_buf));
} else {
fprintf(stderr, str_buf);
exit(-1);
std::exit(-1);
}
}
......
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