".github/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "a3b9dae730a3593eefdf643f11a97ab60cd77143"
Unverified Commit 848e76c3 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[R-package] use safer pattern for error formatting (fixes #6212) (#6216)

parent 2ee3ec84
......@@ -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::string& ex) { LGBM_R_save_exception_msg(ex); } \
catch(...) { Rf_error("unknown exception"); } \
Rf_error(R_errmsg_buffer); \
Rf_error("%s", R_errmsg_buffer); \
return R_NilValue; /* <- won't be reached */
#define CHECK_CALL(x) \
......
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