Skip to content

Commit

Permalink
Refactor checking isDebug for additional logging of NativeSsh
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuznetsov4xxi committed Feb 25, 2017
1 parent a075f6c commit eb9bb7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Server/Remote/NativeSsh.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function run($command)
->setIdleTimeout(null)
->mustRun();
} catch (ProcessFailedException $exception) {
$errorMessage = \Deployer\isVerbose() ? $exception->getMessage() : $process->getErrorOutput();
$errorMessage = \Deployer\isDebug() ? $exception->getMessage() : $process->getErrorOutput();
throw new \RuntimeException($errorMessage);
}

Expand Down Expand Up @@ -171,7 +171,7 @@ public function scpCopy($target, $target2)
->setIdleTimeout(null)
->mustRun();
} catch (ProcessFailedException $exception) {
$errorMessage = \Deployer\isVerbose() ? $exception->getMessage() : $process->getErrorOutput();
$errorMessage = \Deployer\isDebug() ? $exception->getMessage() : $process->getErrorOutput();
throw new \RuntimeException($errorMessage);
}

Expand Down

0 comments on commit eb9bb7e

Please sign in to comment.