diff --git a/src/c_api/c_api.cc b/src/c_api/c_api.cc index b118c8f20..4b7092fa2 100644 --- a/src/c_api/c_api.cc +++ b/src/c_api/c_api.cc @@ -682,7 +682,7 @@ XGB_DLL int XGBoosterDumpModel(BoosterHandle handle, int with_stats, xgboost::bst_ulong* len, const char*** out_models) { - XGBoosterDumpModelEx(handle, fmap, with_stats, "text", len, out_models); + return XGBoosterDumpModelEx(handle, fmap, with_stats, "text", len, out_models); } XGB_DLL int XGBoosterDumpModelEx(BoosterHandle handle, const char* fmap, @@ -709,7 +709,7 @@ XGB_DLL int XGBoosterDumpModelWithFeatures(BoosterHandle handle, int with_stats, xgboost::bst_ulong* len, const char*** out_models) { - XGBoosterDumpModelExWithFeatures(handle, fnum, fname, ftype, with_stats, + return XGBoosterDumpModelExWithFeatures(handle, fnum, fname, ftype, with_stats, "text", len, out_models); } XGB_DLL int XGBoosterDumpModelExWithFeatures(BoosterHandle handle,