Skip to content

Boxstarter should report how many packages failed to install #401

Open
@mwallner

Description

@mwallner

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){ ... }

Metadata

Metadata

Assignees

Labels

1 - ReadyIssue is accepted, milestone added and are ready to be worked onBugIssues where something has happened which was not expected or intendedCustomerBug reported or feature requested by a licensed customer of Chocolatey

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions