Skip to content

Commit

Permalink
fix: Fix typos in error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Cecilia Cho <162955484+chocecil@users.noreply.github.com>
  • Loading branch information
chocecil committed Apr 29, 2024
1 parent 34216d7 commit 1ab3ccc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/deadline/client/api/_loginout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/deadline/client/cli/_groups/auth_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/deadline/client/ui/dev_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/deadline/client/ui/dialogs/deadline_login_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 1ab3ccc

Please sign in to comment.