Browse Source

fix(yay): match -Qu return (#1924)

match -Qu return
Jo 2 years ago
parent
commit
a3d51a42da
1 changed files with 4 additions and 0 deletions
  1. 4 0
      print.go

+ 4 - 0
print.go

@@ -130,6 +130,10 @@ func printUpdateList(ctx context.Context, cmdArgs *parser.Arguments,
 		return err
 	}
 
+	if (len(aurUp.Up) + len(repoUp.Up)) == 0 {
+		return fmt.Errorf("")
+	}
+
 	noTargets := len(targets) == 0
 
 	if !cmdArgs.ExistsArg("m", "foreign") {