diff --git a/cmd/query/check.go b/cmd/query/check.go index 7a873e2..77b6f4d 100644 --- a/cmd/query/check.go +++ b/cmd/query/check.go @@ -53,7 +53,7 @@ func check( response, err := fgaClient.Check(context.Background()).Body(*body).Options(*options).Execute() if err != nil { - return nil, fmt.Errorf("failed to check due to %w", err) + return nil, fmt.Errorf("due to %w", err) } return response, nil @@ -90,7 +90,7 @@ var checkCmd = &cobra.Command{ response, err := check(fgaClient, args[0], args[1], args[2], contextualTuples, queryContext, consistency) if err != nil { - return fmt.Errorf("failed to check due to %w", err) + return fmt.Errorf("check failed %w", err) } return output.Display(*response)