-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boxstarter should report how many packages failed to install #401
Comments
If you used the What might be nice is if we have somewhere we can log issues / warnings / errors that the end user should know about and then, when everything is done, display them to the user? Something like a |
I was also thinking about #296, in contrast to the (initial) suggested change there, this would actually try to install all packages, before setting |
Rather then the number of failed installs (does it matter how many?) you could just exit 1 or 0? I'm not against the idea. I think that:
|
I actually don't care how many installs failed, the thing is that, with a current version of Boxstarter, it is hard to get some useful return/exit code that tells you if something went wrong or not. I do like your suggestion with the
somewhere at the end of the default Boxstarter procedure. (it should not matter, if you call |
Just revisited this.
meaning: reporting of the install error and setting of the return code must happen last, after Boxstarter cleanup-phase (UAC, Win-Update Settings etc. need to be restored!!) |
Short answer: no, this issue is something different as we're aiming to provide some feedback on which packages were installed successfully and which failed - after the Boxstarter procedure finished. (without the early-stopping bits) |
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 atry{ .. } catch { ...}
should be sufficient to check if something went wrong.How Did You Get This To Happen? (Steps to Reproduce)
using
Boxstarter.bat
I'd suggest something like
here, right after the
foreach($packageName in $packageNames){ ... }
The text was updated successfully, but these errors were encountered: