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

always print exception msg.

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