Skip to content

Commit 70c9ec8

Browse files
committed
Fix SSH command execution error handling by updating exception code to 0
1 parent 84a11fa commit 70c9ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ssh.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function exec(string $command): string {
161161
try {
162162
return $this->connection->exec($command);
163163
} catch (ErrorException $e) {
164-
throw new SSHException("Failed to execute the command: $command", null, $e);
164+
throw new SSHException("Failed to execute the command: $command", 0, $e);
165165
}
166166
}
167167

0 commit comments

Comments
 (0)