diff --git a/robot/resource_cli.robot b/robot/resource_cli.robot index a7642c084..abf03d9ef 100644 --- a/robot/resource_cli.robot +++ b/robot/resource_cli.robot @@ -53,4 +53,4 @@ Git Resource Add URL Flag Validation Rejects Non Git Types ... timeout=120s on_timeout=kill stderr=STDOUT Log ${result.stdout} Should Not Be Equal As Integers ${result.rc} 0 - Should Contain ${result.stdout} --url only for git resources + Should Contain ${result.stdout} --url is only valid for git resources diff --git a/src/cleveragents/cli/commands/resource.py b/src/cleveragents/cli/commands/resource.py index 5fecb6294..0c57fae46 100644 --- a/src/cleveragents/cli/commands/resource.py +++ b/src/cleveragents/cli/commands/resource.py @@ -699,7 +699,8 @@ def resource_add( if url is not None: if type_name != "git": console.print( - "[red]Validation error:[/red] --url only for git resources." + "[red]Validation error:[/red] " + "--url is only valid for git resources." ) raise typer.Abort() url_value = url.strip()