mirror of
https://github.com/usestrix/strix.git
synced 2026-08-18 09:49:17 +02:00
feat: add tool server health check and show error details in CLI
- Add _wait_for_tool_server_health() to verify tool server is responding after init - Show error details in CLI mode when penetration test fails - Simplify error message (remove technical URL details)
This commit is contained in:
@@ -167,8 +167,11 @@ async def run_cli(args: Any) -> None: # noqa: PLR0915
|
||||
|
||||
if isinstance(result, dict) and not result.get("success", True):
|
||||
error_msg = result.get("error", "Unknown error")
|
||||
error_details = result.get("details")
|
||||
console.print()
|
||||
console.print(f"[bold red]❌ Penetration test failed:[/] {error_msg}")
|
||||
if error_details:
|
||||
console.print(f"[dim]{error_details}[/]")
|
||||
console.print()
|
||||
sys.exit(1)
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user