File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -776,6 +776,7 @@ func (c *collection) ErrorCode(err error) gcerrors.ErrorCode {
776776}
777777
778778var errorCodeMap = map [string ]gcerrors.ErrorCode {
779+ // handled by type above
779780 // "ConditionalCheckFailedException": gcerrors.FailedPrecondition,
780781 // "IdempotentParameterMismatchException": gcerrors.InvalidArgument,
781782 // "InternalServerErrorException": gcerrors.Internal,
@@ -786,7 +787,8 @@ var errorCodeMap = map[string]gcerrors.ErrorCode{
786787 // "TransactionCanceledException": gcerrors.FailedPrecondition,
787788 // "TransactionConflictException": gcerrors.Internal,
788789 // "TransactionInProgressException": gcerrors.InvalidArgument,
789- "ValidationErrorException" : gcerrors .InvalidArgument ,
790+
791+ // V2 doesn't have a type for this, inspect message instead
790792 "ValidationException" : gcerrors .InvalidArgument ,
791793}
792794
You can’t perform that action at this time.
0 commit comments