Skip to content

Commit

Permalink
chore: Update error messages in check function
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddhant-K-code committed Oct 14, 2024
1 parent f47cb26 commit 64bcbfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/query/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 64bcbfd

Please sign in to comment.