Skip to content

Commit

Permalink
[JVM Packages] Catch dmlc error by ref. (#5678)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored May 19, 2020
1 parent 83981a9 commit dd9aeb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jvm-packages/xgboost4j/src/native/xgboost4j.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ XGB_EXTERN_C int XGBoost4jCallbackDataIterNext(
global_jvm->DetachCurrentThread();
}
return ret_value;
} catch(dmlc::Error e) {
} catch(dmlc::Error const& e) {
// only detach if it is a async call.
if (jni_status == JNI_EDETACHED) {
global_jvm->DetachCurrentThread();
Expand Down

0 comments on commit dd9aeb6

Please sign in to comment.