Open
Description
What You Are Seeing?
Invoke-ChocolateyBoxstarter doesn't provide any information if something failed along the way.
What is Expected?
(in case of 'no-reboots-required') either $lastexitcode
or a try{ .. } catch { ...}
should be sufficient to check if something went wrong.
How Did You Get This To Happen? (Steps to Reproduce)
using Boxstarter.bat
C:\myboxstarter\Boxstarter.bat pkg_does_not_exist
echo %errorlevel%
I'd suggest something like
if($chocoErrors -gt 0){
$lastexitcode = $chocoErrors
throw "got $chocoErrors Chocolatey errors"
}
here, right after the foreach($packageName in $packageNames){ ... }