Skip to content

Commit

Permalink
fix: make rmproject warning more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-RA-King committed Jul 17, 2022
1 parent e87dabc commit e0b14c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

<!--next-version-placeholder-->

## v1.1.3 (2022-07-17)
### Fix
* Change test order for mvproject function ([`e87dabc`](https://github.com/Stephen-RA-King/pynball/commit/e87dabc89d949b1be9a6eb74616ec24390e4c54c))

## v1.1.2 (2022-07-17)
### Fix
* Add exception handling for mvproject ([`3265299`](https://github.com/Stephen-RA-King/pynball/commit/3265299ee5da6f3781d8fa3c070d38bd28bcc384))
Expand Down
2 changes: 1 addition & 1 deletion src/pynball/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Top-level package for _pynball."""

__title__ = "_pynball"
__version__ = "1.1.1"
__version__ = "1.1.3"
__author__ = "Stephen R A King"
__description__ = "Utility command line to switch between python versions"
__license__ = "MIT"
Expand Down
4 changes: 3 additions & 1 deletion src/pynball/pynball.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,10 @@ def rmproject(delete_all: str, project_name: str) -> None:
continue
try:
shutil.rmtree(del_path)
message = f"'{del_path}' has been deleted"
_feedback(message, "warning")
except FileNotFoundError:
message = f"Project: '{project_name}' does not exist"
message = f"Project: '{del_path}' does not exist"
_feedback(message, "warning")


Expand Down

0 comments on commit e0b14c2

Please sign in to comment.