diff --git a/ge/offline/main.cc b/ge/offline/main.cc index 40a20e16..5b3eb4ae 100755 --- a/ge/offline/main.cc +++ b/ge/offline/main.cc @@ -459,8 +459,7 @@ class GFlagUtils { ret = ge::FAILED, "check enable single stream failed!"); GE_CHK_BOOL_TRUE_EXEC_WITH_LOG((FLAGS_display_model_info != "0") && (FLAGS_display_model_info != "1"), - ErrorManager::GetInstance().ATCReportErrMessage( - "E10006", {"parameter"}, {"display_model_info", FLAGS_display_model_info}), + ErrorManager::GetInstance().ATCReportErrMessage("E10006", {"parameter"}, {"display_model_info"}); ret = ge::FAILED, "Input parameter[--display_model_info]'s value must be 1 or 0."); return ret; diff --git a/ge/session/omg.cc b/ge/session/omg.cc index df54e007..37b279a2 100755 --- a/ge/session/omg.cc +++ b/ge/session/omg.cc @@ -1017,7 +1017,7 @@ FMK_FUNC_HOST_VISIBILITY Status ConvertOm(const char *model_file, const char *js return ret; } catch (const std::exception &e) { ErrorManager::GetInstance().ATCReportErrMessage("E19021", {"reason"}, - {"Convert om model to json failed, exception message[" + e.what() + "]"}); + {"Convert om model to json failed, exception message[" + std::string(e.what()) + "]"}); GELOGE(FAILED, "Convert om model to json failed, exception message : %s.", e.what()); return FAILED; } @@ -1066,12 +1066,12 @@ FMK_FUNC_HOST_VISIBILITY Status ConvertPbtxtToJson(const char *model_file, const } catch (google::protobuf::FatalException &e) { free_model_data(&model.model_data); ErrorManager::GetInstance().ATCReportErrMessage("E19021", {"reason"}, {"ParseFromString failed, exception message[" - + e.what() + "]"); + + std::string(e.what()) + "]"}); GELOGE(FAILED, "ParseFromString failed. exception message : %s", e.what()); return FAILED; } catch (const std::exception &e) { ErrorManager::GetInstance().ATCReportErrMessage("E19021", {"reason"}, - {"Convert pbtxt to json failed, exception message[" + e.what() + "]"}); + {"Convert pbtxt to json failed, exception message[" + std::string(e.what()) + "]"}); GELOGE(FAILED, "Convert pbtxt to json failed, exception message : %s.", e.what()); return FAILED; }