Skip to content

Commit

Permalink
Merge pull request #86 from Stephanevg/patch-2 !deploy
Browse files Browse the repository at this point in the history
Error message more meaningfull for linux systems when graphviz is not found
  • Loading branch information
KevinMarquette committed Dec 16, 2018
2 parents be1b7ba + 2a5ad6b commit 16cf788
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PSGraph/Public/Export-PSGraph.ps1
Expand Up @@ -95,7 +95,8 @@ function Export-PSGraph

if ( $null -eq $graphViz )
{
throw "Could not find GraphViz installed on this system. Please run 'Install-GraphViz' to install the needed binaries and libraries. This module just a wrapper around GraphViz and is looking for it in your program files folder. Optionally pass a path to your dot.exe file with the GraphVizPath parameter"
$GraphvizPathString = $GraphVizPath -Join " or "
throw "Could not find GraphViz installed on this system. Please run 'Install-GraphViz' to install the needed binaries and libraries. This module just a wrapper around GraphViz and is looking for it in the following paths: $($GraphvizPathString). Optionally pass a path to your dot.exe file with the GraphVizPath parameter"
}

$useStandardInput = $false
Expand Down

0 comments on commit 16cf788

Please sign in to comment.