PrateekKumarSingh / AzViz

⚡ ☁ Azure Visualizer aka 'AzViz' : A #powershell module to automatically generate Azure resource topology diagrams by just typing a PowerShell cmdlet and passing the name of one or more Azure Resource groups
MIT License
584 stars 146 forks source link

Handle error in Get-DOTExecutable.ps1 #91

Open t-mxcom opened 2 years ago

t-mxcom commented 2 years ago

Hello!

Line 9 in Get-DOTExecutable.ps1 causes an error and terminates the execution of AzViz, if the dot application wasn't found in the system search path. This should be handled so that it's not necessary to add Graphviz to $env:path if it's installed in one of the predefined default directories (lines 4-7).

I'm currently using PowerShell version Major Minor Build Revision
5 1 19041 1320

Thank you!