forked from containers/toolbox
-
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.
pkg/podman: Add error parsing method
This new helper function parses the output of Podman in stderr into a dedicated structure with defined methods for working with the error. The most significant part is the method Is() that wraps around errors.Is() and if that fails to find a match resorts to string matching. This is needed because there are no defined errors to catch errors coming from Podman. The structure is only meant to be used internally. containers#786
- Loading branch information
1 parent
7d13300
commit 0f5868c
Showing
1 changed file
with
66 additions
and
0 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