From 1ab3ccc32c6fd53bc558d0fea54dd241735a6e88 Mon Sep 17 00:00:00 2001 From: Cecilia Cho <162955484+chocecil@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:15:28 -0700 Subject: [PATCH] fix: Fix typos in error messages Signed-off-by: Cecilia Cho <162955484+chocecil@users.noreply.github.com> --- src/deadline/client/api/_loginout.py | 9 ++++++--- src/deadline/client/cli/_groups/auth_group.py | 2 +- src/deadline/client/ui/dev_application.py | 2 +- src/deadline/client/ui/dialogs/deadline_login_dialog.py | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/deadline/client/api/_loginout.py b/src/deadline/client/api/_loginout.py index 4403e1d4..483d84bb 100644 --- a/src/deadline/client/api/_loginout.py +++ b/src/deadline/client/api/_loginout.py @@ -58,7 +58,8 @@ def _login_deadline_cloud_monitor( time.sleep(0.5) except FileNotFoundError: raise DeadlineOperationError( - f"Could not find Deadline Cloud Monitor at {deadline_cloud_monitor_path}. Please ensure Deadline Cloud Monitor is installed correctly and setup the {profile_name} profile again." + f"Could not find Deadline Cloud Monitor at {deadline_cloud_monitor_path}." + f"Please ensure Deadline Cloud Monitor is installed correctly and set up the {profile_name} profile again." ) if on_pending_authorization: on_pending_authorization( @@ -136,11 +137,13 @@ def logout(config: Optional[ConfigParser] = None) -> str: output = subprocess.check_output(args) except FileNotFoundError: raise DeadlineOperationError( - f"Could not find Deadline Cloud Monitor at {deadline_cloud_monitor_path}. Please ensure Deadline Cloud Monitor is installed correctly and setup the {profile_name} profile again." + f"Could not find Deadline Cloud Monitor at {deadline_cloud_monitor_path}." + f"Please ensure Deadline Cloud Monitor is installed correctly and set up the {profile_name} profile again." ) except subprocess.CalledProcessError as e: raise DeadlineOperationError( - f"Deadline Cloud Monitor was unable to logout the profile {profile_name}. Return code {e.returncode}: {e.output}" + f"Deadline Cloud Monitor was unable to log out the profile {profile_name}." + f"Return code {e.returncode}: {e.output}" ) # Force a refresh of the cached boto3 Session diff --git a/src/deadline/client/cli/_groups/auth_group.py b/src/deadline/client/cli/_groups/auth_group.py index 62479601..d878a34f 100644 --- a/src/deadline/client/cli/_groups/auth_group.py +++ b/src/deadline/client/cli/_groups/auth_group.py @@ -27,7 +27,7 @@ def _cli_on_pending_authorization(**kwargs): """ if kwargs["credentials_source"] == AwsCredentialsSource.DEADLINE_CLOUD_MONITOR_LOGIN: - click.echo("Opening Deadline Cloud Monitor. Please login and then return here.") + click.echo("Opening Deadline Cloud Monitor. Please log in and then return here.") @click.group(name="auth") diff --git a/src/deadline/client/ui/dev_application.py b/src/deadline/client/ui/dev_application.py index 9cd4a710..d57f8812 100644 --- a/src/deadline/client/ui/dev_application.py +++ b/src/deadline/client/ui/dev_application.py @@ -79,7 +79,7 @@ def login(self): if DeadlineLoginDialog.login(parent=self): logger.info("Logged in successfully") else: - logger.info("Failed to login") + logger.info("Failed to log in") def logout(self): api.logout() diff --git a/src/deadline/client/ui/dialogs/deadline_login_dialog.py b/src/deadline/client/ui/dialogs/deadline_login_dialog.py index 0d78ff87..10be2ffb 100644 --- a/src/deadline/client/ui/dialogs/deadline_login_dialog.py +++ b/src/deadline/client/ui/dialogs/deadline_login_dialog.py @@ -110,7 +110,7 @@ def on_pending_authorization(**kwargs): == AwsCredentialsSource.DEADLINE_CLOUD_MONITOR_LOGIN ): self.login_thread_message.emit( - "Opening Deadline Cloud Monitor. Please login before returning here." + "Opening Deadline Cloud Monitor. Please log in before returning here." ) def on_cancellation_check():