Skip to content

Commit

Permalink
CLI: not an assert (minor)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Aizman <[email protected]>
  • Loading branch information
alex-aizman committed Nov 6, 2024
1 parent e261aaa commit 6e6af34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/cli/cli/show_hdlr.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ func showClusterHandler(c *cli.Context) error {
func xactList(c *cli.Context, xargs *xact.ArgsMsg, caption bool) (int, error) {
// override the caller's choice if explicitly identified
if xargs.ID != "" {
debug.Assert(xact.IsValidUUID(xargs.ID), xargs.ID)
if !xact.IsValidUUID(xargs.ID) {
return 0, fmt.Errorf("UUID %q is invalid (typo?)", xargs.ID)
}
xargs.OnlyRunning = false
}

Expand Down

0 comments on commit 6e6af34

Please sign in to comment.