[Enhancement] Smooth out the success/failure logging #154
Comments
Did you have an idea on holding cell? |
It just show up too many times per package (the errors are displayed more than once sometimes). |
Same goes for success logging. As far as the holding area, yeah, I think we install the packages to a holding area - when they are successful we copy them up (prior to running the exe locator). |
The nice thing about the holding cell is that should solve the scenario where after an error occurs, chocolatey thinks that the package is installed. |
The only "thinking" chocolatey does is check lib. |
right. Do you think the expectation though is that if a package fails to install calling cinst without -force should not state that the package has already been installed? That was always mine and getting that message feels wrong. If the holding cell is deleted after a failure and nothing goes to lib in the end, then that should solve the issue. |
are you suggesting then, that if there is a failure, then the $packagefolder then just be moved to something like \failures$packagefolder? i would think that it should also run chocolateyuninstall.ps1 with a silentlycontinue... There is no way to know the "impact" of errors since anything could have happened. Also worthy, is everything needs to get logged... |
That's a good point on the uninstall. I was actually thinking that it just get deleted but your idea is much better. |
Some packages output an error message and then throw it.
I don't know what Write-Error does besides writing the message, but if it includes the stack details, maybe that's where it goes wrong. Just a thought. -edit- Other packages do
But maybe it's irrelevant. -edit-
|
Don't like seeing a bunch of those.
Also, tackle the idea of putting items into a holding cell until they are successfully installed.
The text was updated successfully, but these errors were encountered: