Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gitops-pusher: friendlier error on invalid subcommand
If an invalid subcommand was provided to the gitops-pusher (e.g. I mistakenly passed 'sync' rather than the expected 'apply'), the error rendered from ffcli does not make this obvious to the operator, particularly when rendered in a CI pipeline. The error was: terminal command () doesn't define an Exec function This trivial change catches the ffcli error and provides a friendlier error to the user to hopefully aid their diagnosis of the problem in these cases. Fixes #11842. Signed-off-by: Matthew Huxtable <git@tigermatt.uk>
- Loading branch information