Skip to content

Commit

Permalink
SDK-2351: Fixed exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4onok committed Apr 24, 2023
1 parent 1852dc7 commit a1b408c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SecurityChecker/Command/SecurityCheckerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Exception\RuntimeException;
use Symfony\Component\Process\Process;

class SecurityCheckerCommand extends Command
Expand Down Expand Up @@ -106,7 +107,7 @@ protected function loadFile(): void
exec(sprintf('wget %s -O %s 2>&1', static::BINARY_CHECKER, static::FILE_NAME), $output, $resultCode);

if ($resultCode === static::CODE_ERROR) {
throw new ProcessFailedException($output);
throw new RuntimeException(implode(PHP_EOL, $output));
}

$this->changeFileMode();
Expand Down

0 comments on commit a1b408c

Please sign in to comment.