From ee6e8dd35997d542c153f045ce9e8a9cdcc2215a Mon Sep 17 00:00:00 2001 From: Will Monroe Date: Fri, 16 Dec 2022 15:23:55 -0500 Subject: [PATCH] Fix some Batch error message typos (#5779) --- moto/batch/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/moto/batch/models.py b/moto/batch/models.py index eb8fd9228..7674480c3 100644 --- a/moto/batch/models.py +++ b/moto/batch/models.py @@ -1603,11 +1603,11 @@ class BatchBackend(BaseBackend): def cancel_job(self, job_id: str, reason: str) -> None: if job_id == "": raise ClientException( - "'reason' is a required field (cannot be an empty string)" + "'jobId' is a required field (cannot be an empty string)" ) if reason == "": 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) @@ -1619,11 +1619,11 @@ class BatchBackend(BaseBackend): def terminate_job(self, job_id: str, reason: str) -> None: if job_id == "": raise ClientException( - "'reason' is a required field (cannot be a empty string)" + "'jobId' is a required field (cannot be a empty string)" ) if reason == "": 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)