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
848e76c3
Unverified
Commit
848e76c3
authored
Nov 29, 2023
by
James Lamb
Committed by
GitHub
Nov 29, 2023
Browse files
[R-package] use safer pattern for error formatting (fixes #6212) (#6216)
parent
2ee3ec84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
R-package/src/lightgbm_R.cpp
R-package/src/lightgbm_R.cpp
+1
-1
No files found.
R-package/src/lightgbm_R.cpp
View file @
848e76c3
...
@@ -40,7 +40,7 @@ void LGBM_R_save_exception_msg(const std::string &err);
...
@@ -40,7 +40,7 @@ void LGBM_R_save_exception_msg(const std::string &err);
catch(std::exception& ex) { LGBM_R_save_exception_msg(ex); } \
catch(std::exception& ex) { LGBM_R_save_exception_msg(ex); } \
catch(std::string& ex) { LGBM_R_save_exception_msg(ex); } \
catch(std::string& ex) { LGBM_R_save_exception_msg(ex); } \
catch(...) { Rf_error("unknown exception"); } \
catch(...) { Rf_error("unknown exception"); } \
Rf_error(R_errmsg_buffer); \
Rf_error(
"%s",
R_errmsg_buffer); \
return R_NilValue;
/* <- won't be reached */
return R_NilValue;
/* <- won't be reached */
#define CHECK_CALL(x) \
#define CHECK_CALL(x) \
...
...
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