Fix some Batch error message typos (#5779)

This commit is contained in:
Will Monroe 2022-12-16 15:23:55 -05:00 committed by GitHub
parent 52891e1641
commit ee6e8dd359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)