mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-24 16:41:47 +00:00
events: reword error messages
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
c0916edc44
commit
3f3d68a33a
1 changed files with 2 additions and 2 deletions
|
|
@ -127,9 +127,9 @@ func eventsCmdRun(cmd *cobra.Command, args []string) error {
|
||||||
rows, err := getRows(ctx, kubeclient, clientListOpts, refListOpts, showNamespace)
|
rows, err := getRows(ctx, kubeclient, clientListOpts, refListOpts, showNamespace)
|
||||||
if len(rows) == 0 {
|
if len(rows) == 0 {
|
||||||
if eventArgs.allNamespaces {
|
if eventArgs.allNamespaces {
|
||||||
logger.Failuref("No flux events found.")
|
logger.Failuref("No events found.")
|
||||||
} else {
|
} else {
|
||||||
logger.Failuref("No flux events found in %s namespace.\n", *kubeconfigArgs.Namespace)
|
logger.Failuref("No events found in %s namespace.", *kubeconfigArgs.Namespace)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue