-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/list: Add type assertions and error reporter
Every time Podman changes their JSON API Toolbox breaks horribly. That is caused by the complete lack of type guards. With this the verbosity of the code goes up a bit but it should be much more resistant to API changes. If a field is of a not-expected type, the field is set to "<error>" and an error message is printed after the rest of the table is printed into the console.
- Loading branch information
1 parent
bf815d3
commit f270c7f
Showing
1 changed file
with
74 additions
and
13 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