Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
3f14f33c
Commit
3f14f33c
authored
Mar 13, 2017
by
Guolin Ke
Browse files
always print exception msg.
parent
4d033831
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/LightGBM/utils/log.h
include/LightGBM/utils/log.h
+2
-2
No files found.
include/LightGBM/utils/log.h
View file @
3f14f33c
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment