Skip to content

Commit

Permalink
Project.py messages clarification (#581)
Browse files Browse the repository at this point in the history
* project.py: create_warnet_project - Include directory path in warning

* project.py: new_internal - Clarify that it is a directory

Although it says files plural, I accidentally tried to edit the folder as if it was a file.
  • Loading branch information
hodlinator authored Sep 11, 2024
1 parent c1d76ef commit ec1680f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/warnet/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def check_installation(tool_info: ToolInfo) -> ToolStatus:
def create_warnet_project(directory: Path, check_empty: bool = False):
"""Common function to create a warnet project"""
if check_empty and any(directory.iterdir()):
click.secho("Warning: Directory is not empty", fg="yellow")
click.secho(f"Warning: Directory {directory} is not empty", fg="yellow")
if not click.confirm("Do you want to continue?", default=True):
return

Expand Down Expand Up @@ -308,7 +308,7 @@ def new_internal(directory: Path, from_init=False):

if custom_network_path:
click.echo(
f"\nEdit the network files found in {custom_network_path} before deployment if you want to customise the network."
f"\nEdit the network files found under {custom_network_path}/ before deployment if you want to customise the network."
)
click.echo("\nWhen you're ready, run the following command to deploy this network:")
click.echo(f" warnet deploy {custom_network_path}")
Expand Down

0 comments on commit ec1680f

Please sign in to comment.