From 1bcd6dc600542f42237779f2213d484a39d66f93 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Tue, 6 Jun 2017 13:36:31 -0500 Subject: [PATCH] (maint) formatting --- .../helpers/functions/Install-ChocolateyFileAssociation.ps1 | 1 + .../helpers/functions/Write-FileUpdateLog.ps1 | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyFileAssociation.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyFileAssociation.ps1 index eac8c4920f..25fea45dd6 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyFileAssociation.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyFileAssociation.ps1 @@ -61,6 +61,7 @@ param( ) Write-FunctionCallLogMessage -Invocation $MyInvocation -Parameters $PSBoundParameters + if(-not(Test-Path $executable)){ $errorMessage = "`'$executable`' does not exist, not able to create association" Write-Error $errorMessage diff --git a/src/chocolatey.resources/helpers/functions/Write-FileUpdateLog.ps1 b/src/chocolatey.resources/helpers/functions/Write-FileUpdateLog.ps1 index b80e349b2a..2ac04e7212 100644 --- a/src/chocolatey.resources/helpers/functions/Write-FileUpdateLog.ps1 +++ b/src/chocolatey.resources/helpers/functions/Write-FileUpdateLog.ps1 @@ -57,7 +57,6 @@ param ( ) Write-FunctionCallLogMessage -Invocation $MyInvocation -Parameters $PSBoundParameters - Write-Warning "Write-FileUpdateLog has been deprecated and will be removed in v1." Write-Debug "Tracking current state of `'$locationToMonitor`'"