Skip to content

Commit

Permalink
fix: consolidate error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-RA-King committed Mar 27, 2022
1 parent 9ac41b5 commit 52a106c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pynball/pynball.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def mkproject(name: str, project_name):
project_name: The project name only. Not the path.
"""
if _WORKON_HOME == Path("") or _PROJECT_HOME == Path(""):
message = """Virtualenv-wrapper is not configured on you system:
message = """Virtualenv-wrapper is not configured on your system:
Please install Virtualenv and Virtualenv-wrapper and configure
'WORKON_HOME' and 'PROJECT_HOME' environment variables"""
_feedback(message, "warning")
Expand Down Expand Up @@ -576,8 +576,8 @@ def rmproject(delete_all, project_name):
"""
if _WORKON_HOME == Path("") or _PROJECT_HOME == Path(""):
message = """Virtualenv-wrapper is not configured on your system:
Please install Virtualenv and Virtualenv-wrapper and configure
'WORKON_HOME' and 'PROJECT_HOME' environment variables"""
Please install Virtualenv and Virtualenv-wrapper and configure
'WORKON_HOME' and 'PROJECT_HOME' environment variables"""
_feedback(message, "warning")
return
for directory in [_WORKON_HOME, _PROJECT_HOME]:
Expand All @@ -587,7 +587,7 @@ def rmproject(delete_all, project_name):
try:
shutil.rmtree(del_path)
except FileNotFoundError:
message = f"Project: '{del_path}' does not exist"
message = f"Project: '{project_name}' does not exist"
_feedback(message, "warning")


Expand Down

0 comments on commit 52a106c

Please sign in to comment.