Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Chocolatey install not reporting error from bad package #663

Closed
tyrken opened this issue Jan 20, 2015 · 2 comments
Closed

Chocolatey install not reporting error from bad package #663

tyrken opened this issue Jan 20, 2015 · 2 comments

Comments

@tyrken
Copy link

tyrken commented Jan 20, 2015

I (intentionally, to test the chef chocolatey cookbook) introduced an error into the chocolateyInstall.ps1 of a new package I'm writing (the filename is wrong), but it is still being reported to install correctly. It reports a bit of an error but the final messages seem to have forgotten this & report success.

Running on Windows 2008 R2, powershell v2

try {
  $packageName = "logrotatewin"
  $url = $(Split-Path -parent $MyInvocation.MyCommand.Definition) + "\..\data\logrotateSetup_utterly_incorrect.msi"

  Install-ChocolateyPackage $packageName "msi" "/quiet" $url

  Write-ChocolateySuccess $packageName
} catch {
  Write-ChocolateyFailure $packageName $($_.Exception.Message)
  throw
}
@ferventcoder
Copy link
Contributor

Duplicate of #568

@ferventcoder
Copy link
Contributor

#658 implements a fix for that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants