-
Notifications
You must be signed in to change notification settings - Fork 346
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 (#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 <[email protected]> * fix: fix lint error Signed-off-by: xujihui1985 <[email protected]> * 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 <[email protected]> * refactor(libcontainer): use tuple instead of struct change createContainerError to tuple instead of struct Signed-off-by: xujihui1985 <[email protected]> --------- Signed-off-by: xujihui1985 <[email protected]>
- Loading branch information
1 parent
7c18c67
commit 660bc3a
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