Skip to content

Commit ec1680f

Browse files
authored
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.
1 parent c1d76ef commit ec1680f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/warnet/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def check_installation(tool_info: ToolInfo) -> ToolStatus:
255255
def create_warnet_project(directory: Path, check_empty: bool = False):
256256
"""Common function to create a warnet project"""
257257
if check_empty and any(directory.iterdir()):
258-
click.secho("Warning: Directory is not empty", fg="yellow")
258+
click.secho(f"Warning: Directory {directory} is not empty", fg="yellow")
259259
if not click.confirm("Do you want to continue?", default=True):
260260
return
261261

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

309309
if custom_network_path:
310310
click.echo(
311-
f"\nEdit the network files found in {custom_network_path} before deployment if you want to customise the network."
311+
f"\nEdit the network files found under {custom_network_path}/ before deployment if you want to customise the network."
312312
)
313313
click.echo("\nWhen you're ready, run the following command to deploy this network:")
314314
click.echo(f" warnet deploy {custom_network_path}")

0 commit comments

Comments
 (0)