From ec1680f47f37a753e8dda2a9e392a577aec27359 Mon Sep 17 00:00:00 2001 From: hodlinator <172445034+hodlinator@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:31:37 +0200 Subject: [PATCH] Project.py messages clarification (#581) * 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. --- src/warnet/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/warnet/project.py b/src/warnet/project.py index e3a2fed0e..33fb8ce47 100644 --- a/src/warnet/project.py +++ b/src/warnet/project.py @@ -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 @@ -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}")