Skip to content
Browse files

adding bad package

  • Loading branch information...
1 parent 5f99a73 commit 1d664c41973c604baa6b88ffbf2d971e979b5bef @ferventcoder committed
Showing with 34 additions and 0 deletions.
  1. +19 −0 badpackage/badpackage.nuspec
  2. +15 −0 badpackage/tools/chocolateyInstall.ps1
View
19 badpackage/badpackage.nuspec
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <metadata>
+ <id>badpackage</id>
+ <title>badpackage</title>
+ <version>1.0</version>
+ <authors>Rob Reynolds</authors>
+ <owners>Rob Reynolds</owners>
+ <summary>badpackage - This package errors during install</summary>
+ <description>badpackage - This package errors during install. That is its only purpose.
+
+You can find this over at -source https://www.myget.org/F/killerpackages/
+ </description>
+ <tags>badpackage</tags>
+ </metadata>
+ <files>
+ <file src="tools\**" target="tools" />
+ </files>
+</package>
View
15 badpackage/tools/chocolateyInstall.ps1
@@ -0,0 +1,15 @@
+$packageName = 'badpackage'
+
+try {
+
+ Write-Host "Ya!"
+ Write-Debug "A debug message"
+ Write-Warning "A warning!"
+ Write-Error "Oh no! An error"
+ throw "We had an error captain!"
+
+ Write-ChocolateySuccess "$packageName"
+} catch {
+ Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
+ throw
+}

0 comments on commit 1d664c4

Please sign in to comment.
Something went wrong with that request. Please try again.