Skip to content

Commit 8d73937

Browse files
authored
InspectorCommand error message improvement (#55)
* InspectorCommand error message improvement * Add arrow function return type
1 parent 58247e7 commit 8d73937

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Console/Commands/InspectorCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public function handle(Registrar $registrar): int
5353
}
5454

5555
if (is_null($localServer) && is_null($route)) {
56-
$this->components->error('MCP Server with name ['.$handle.'] not found. Available servers: '.Arr::join(array_keys($servers), ', '));
56+
$availableServers = Arr::map(array_keys($servers), fn ($server): string => "[{$server}]");
57+
$this->components->error('MCP Server with name ['.$handle.'] not found. Available servers: '.Arr::join($availableServers, ', '));
5758

5859
return static::FAILURE;
5960
}

0 commit comments

Comments
 (0)