Skip to content

Commit

Permalink
fix: errorInfoMetadata should be a string->string object (#1282)
Browse files Browse the repository at this point in the history
I'm pretty sure that's the case, anyhow. Right now it's just an object with one member named `string` of type `string`.
  • Loading branch information
feywind authored Jun 17, 2022
1 parent 7561fdd commit d1c4fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/googleError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class GoogleError extends Error {
statusDetails?: string | protobuf.Message<{}>[];
reason?: string;
domain?: string;
errorInfoMetadata?: {string: string};
errorInfoMetadata?: {[propName: string]: string};

// Parse details field in google.rpc.status wire over gRPC medatadata.
// Promote google.rpc.ErrorInfo if exist.
Expand Down

0 comments on commit d1c4fec

Please sign in to comment.