Skip to content

Commit

Permalink
Throw error if no browser is found
Browse files Browse the repository at this point in the history
  • Loading branch information
pcgeek86 committed Aug 2, 2023
1 parent 04ae195 commit 35bb6b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/private/Find-Browser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ function Find-Browser {
foreach ($Command in $CommandList) {
if (Get-Command -Name $Command -ErrorAction Ignore) { return $Command }
}
throw 'No web browser could be found to use for oAuth'
}

0 comments on commit 35bb6b1

Please sign in to comment.