Skip to content

Commit e04eeaf

Browse files
committed
Update WithWSL.php
1 parent 0be624e commit e04eeaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Concerns/WithWSL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function installMcpViaWsl(string $name, string $command, array $args):
2828

2929
// Read existing config via PowerShell
3030
$readCommand = "powershell.exe -NoProfile -Command \"if (Test-Path '{$filePath}') { Get-Content '{$filePath}' -Raw } else { '{}' }\"";
31-
$result = Process::run($readCommand);
31+
$result = Process::run($readCommand)->throw();
3232

3333
$config = json_decode($result->output() ?: '{}', true) ?: [];
3434

0 commit comments

Comments
 (0)