We don't need exception catching there

feature/node-rewrite
Sven Slootweg 13 years ago
parent 050d8a27ac
commit 7cd3900228

@ -41,19 +41,11 @@ class SshConnector extends CPHPBaseClass
return $this->DoCommand($command, $throw_exception);
}
catch (SshCommandException $e)
{
throw new SshCommandException($e->getMessage());
}
catch (SshConnectException $e)
{
$error = $e->getMessage();
throw new SshCommandException("Could not run command {$command}: Failed to connect: {$error}");
}
catch (SshExitException $e)
{
throw new SshExitException($e->getMessage(), $e->getCode());
}
}
public function RunCommandCached($command, $throw_exception = false)

@ -19,4 +19,5 @@ var_dump($sNode->sRealHostname);
var_dump($sNode->sRealHostname);
var_dump($sNode->sRealHostname);
var_dump($sNode->sRealHostname);
?>

Loading…
Cancel
Save