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 {
776
776
}
777
777
778
778
var errorCodeMap = map [string ]gcerrors.ErrorCode {
779
+ // handled by type above
779
780
// "ConditionalCheckFailedException": gcerrors.FailedPrecondition,
780
781
// "IdempotentParameterMismatchException": gcerrors.InvalidArgument,
781
782
// "InternalServerErrorException": gcerrors.Internal,
@@ -786,7 +787,8 @@ var errorCodeMap = map[string]gcerrors.ErrorCode{
786
787
// "TransactionCanceledException": gcerrors.FailedPrecondition,
787
788
// "TransactionConflictException": gcerrors.Internal,
788
789
// "TransactionInProgressException": gcerrors.InvalidArgument,
789
- "ValidationErrorException" : gcerrors .InvalidArgument ,
790
+
791
+ // V2 doesn't have a type for this, inspect message instead
790
792
"ValidationException" : gcerrors .InvalidArgument ,
791
793
}
792
794
You can’t perform that action at this time.
0 commit comments