Skip to content

Commit

Permalink
fix(pwsh): print error when install fails in module
Browse files Browse the repository at this point in the history
relates to #1498
  • Loading branch information
JanDeDobbeleer committed Dec 27, 2021
1 parent 3c40c04 commit 24dfa21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/powershell/oh-my-posh.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ In case you installed using AllUsers and are a non-admin user,
please run the following command as an administrator:
Import-Module oh-my-posh
Original Error:
'@
Write-Error $message
Write-Host $message
Write-Host $_
exit 1
}

Expand Down

0 comments on commit 24dfa21

Please sign in to comment.