Skip to content

Commit

Permalink
fix error messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
kkunapuli committed Oct 3, 2024
1 parent 6d3bc7b commit 84b8d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/internal/api_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (a *apiServer) getCommandLaunchParams(ctx context.Context, req *protoComman
// Check submitted config against task config policies.
valid, err := configpolicy.CheckNTSCConstraints(ctx, int(cmdSpec.Metadata.WorkspaceID), config, a.m.rm)
if !valid {
return nil, nil, status.Errorf(codes.InvalidArgument, "failed constraint check: %w", err)
return nil, nil, status.Errorf(codes.InvalidArgument, "failed constraint check: %v", err)
}

token, err := getTaskSessionToken(ctx, userModel)
Expand Down

0 comments on commit 84b8d29

Please sign in to comment.