Skip to content

Commit

Permalink
Fix invalid exception argument
Browse files Browse the repository at this point in the history
  • Loading branch information
wvdongen committed Jul 5, 2022
1 parent 1872f29 commit 8884730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Nmap/XmlOutputParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use SimpleXMLElement;
use Symfony\Component\Filesystem\Exception\FileNotFoundException;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Exception\RuntimeException;
use Symfony\Component\Process\ExecutableFinder;
use Symfony\Component\Process\Process;
use Symfony\Component\Filesystem\Filesystem;
Expand Down Expand Up @@ -59,7 +59,7 @@ private function getXmlstarlet(): string
{
$xmlstarlet = (new ExecutableFinder)->find('xmlstarlet');
if (empty($xmlstarlet)) {
throw new ProcessFailedException('xmlstarlet could not be found');
throw new RuntimeException('xmlstarlet could not be found');
}
return $xmlstarlet;
}
Expand Down

0 comments on commit 8884730

Please sign in to comment.