Fix some Batch error message typos (#5779)
This commit is contained in:
parent
52891e1641
commit
ee6e8dd359
@ -1603,11 +1603,11 @@ class BatchBackend(BaseBackend):
|
|||||||
def cancel_job(self, job_id: str, reason: str) -> None:
|
def cancel_job(self, job_id: str, reason: str) -> None:
|
||||||
if job_id == "":
|
if job_id == "":
|
||||||
raise ClientException(
|
raise ClientException(
|
||||||
"'reason' is a required field (cannot be an empty string)"
|
"'jobId' is a required field (cannot be an empty string)"
|
||||||
)
|
)
|
||||||
if reason == "":
|
if reason == "":
|
||||||
raise ClientException(
|
raise ClientException(
|
||||||
"'jobId' is a required field (cannot be an empty string)"
|
"'reason' is a required field (cannot be an empty string)"
|
||||||
)
|
)
|
||||||
|
|
||||||
job = self.get_job_by_id(job_id)
|
job = self.get_job_by_id(job_id)
|
||||||
@ -1619,11 +1619,11 @@ class BatchBackend(BaseBackend):
|
|||||||
def terminate_job(self, job_id: str, reason: str) -> None:
|
def terminate_job(self, job_id: str, reason: str) -> None:
|
||||||
if job_id == "":
|
if job_id == "":
|
||||||
raise ClientException(
|
raise ClientException(
|
||||||
"'reason' is a required field (cannot be a empty string)"
|
"'jobId' is a required field (cannot be a empty string)"
|
||||||
)
|
)
|
||||||
if reason == "":
|
if reason == "":
|
||||||
raise ClientException(
|
raise ClientException(
|
||||||
"'jobId' is a required field (cannot be a empty string)"
|
"'reason' is a required field (cannot be a empty string)"
|
||||||
)
|
)
|
||||||
|
|
||||||
job = self.get_job_by_id(job_id)
|
job = self.get_job_by_id(job_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user