forked from youki-dev/youki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
return run and cleanup both errors on create failed (youki-dev#2998)
* fix(libcontainer): combine multi error when create container failed When container creation fails and triggers a cleanup process that also fails, the original creation error is overwritten by the cleanup error. This change ensures that both the primary creation error and the subsequent cleanup error are captured and reported, providing better visibility into the failure sequence. Signed-off-by: xujihui1985 <xujihui1985@gmail.com> * fix: fix lint error Signed-off-by: xujihui1985 <xujihui1985@gmail.com> * refactor(libcontainer): add CreateContainerError add CreateContainerError to encapsulate both create error and cleanup error, so that caller will understand what happened Signed-off-by: xujihui1985 <xujihui1985@gmail.com> * refactor(libcontainer): use tuple instead of struct change createContainerError to tuple instead of struct Signed-off-by: xujihui1985 <xujihui1985@gmail.com> --------- Signed-off-by: xujihui1985 <xujihui1985@gmail.com> Signed-off-by: Akiyama <akiakiskyhand@gmail.com>
- Loading branch information
1 parent
bebee51
commit f1c89e4
Showing
2 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters