Chromium Code Reviews
Descriptiontoken-server: Fix panic when generating machine token for unrecognized machine.
In this case operation returns MintMachineTokenResponse{ErrorCode: ...} (since
there's no way to return structured error responses via grpc.Error).
BigQuery logging code attempted to log such response and paniced on nil
dereference when attempting to examine the token.
Fix this, add a test and a bunch of asserts.
R=iannucci@chromium.org, smut@google.com
BUG=732467
Review-Url: https://codereview.chromium.org/2943403003
Committed: https://github.com/luci/luci-go/commit/71aba0a6cd7d6264e0ecdd38afe5b69db8c8556f
Patch Set 1 #Patch Set 2 : nit #Patch Set 3 : flatten #
Total comments: 4
Messages
Total messages: 16 (7 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||