Skip to content

Commit

Permalink
Merge pull request #591 from jbuedel/stable
Browse files Browse the repository at this point in the history
(maint) Correct warning message to echo errant file name.
  • Loading branch information
ferventcoder committed Jan 29, 2016
2 parents 7b24a9f + 018f731 commit f93626f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ directoy, an icon to be used for the shortcut, along with a description and argu
}

if(!$targetPath) {
throw "Install-ChocolateyShortcut - `$targetFilePath can not be null."
throw "Install-ChocolateyShortcut - `$targetPath can not be null."
}

if(!(Test-Path($targetPath))) {
Write-Warning "'$targetFilePath' does not exist. If it is not created the shortcut will not be valid."
Write-Warning "'$targetPath' does not exist. If it is not created the shortcut will not be valid."
}

if($iconLocation) {
Expand Down

0 comments on commit f93626f

Please sign in to comment.