From 1c8b74121db64e3de5791d86e313cc1b108b512e Mon Sep 17 00:00:00 2001 From: openGaussDev Date: Thu, 10 Mar 2022 10:57:31 +0800 Subject: [PATCH] decorate xgboost Error information Offering: openGaussDev More detail: decorate xgboost Error information:Delete Stack Print Match-id-04f4a4620009e86d912ff90ffe0117c62dba8847 --- src/gausskernel/dbmind/db4ai/executor/xgboost/xgboost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/dbmind/db4ai/executor/xgboost/xgboost.cpp b/src/gausskernel/dbmind/db4ai/executor/xgboost/xgboost.cpp index b36bd79c7..e39203800 100644 --- a/src/gausskernel/dbmind/db4ai/executor/xgboost/xgboost.cpp +++ b/src/gausskernel/dbmind/db4ai/executor/xgboost/xgboost.cpp @@ -84,7 +84,7 @@ static MemoryContext g_xgboostMcxt = NULL; char *res = strchr(str, '\n'); \ *res = '\0'; \ ereport(ERROR, (errmodule(MOD_DB4AI), errcode(ERRCODE_INVALID_PARAMETER_VALUE), \ - errmsg("%s:%d: error in: %s\n", __FILE__, __LINE__, str))); \ + errmsg("%s", strrchr(str,':') + 1))); \ } \ }