diff --git a/ge/client/ge_api.cc b/ge/client/ge_api.cc index 00b4a057..5f0be1ec 100644 --- a/ge/client/ge_api.cc +++ b/ge/client/ge_api.cc @@ -72,7 +72,7 @@ Status CheckOptionsValid(const std::map &options) { GELOGE(PARAM_INVALID,"[Check][JobId]Failed," "the job_id [%s] string length > max string length: %d", job_id_iter->second.c_str(), kMaxStrLen); - REPORT_INPUT_ERROR("E10051", std::vector({"id","length"}), std::vectorsecond.c_str(), kMaxStrLen.to_string())); + REPORT_INPUT_ERROR("E10051", std::vector({"id","length"}), std::vector(job_id_iter->second.c_str(), kMaxStrLen.to_string(kMaxStrLen.length()))); return FAILED; } }