File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func WrapIfKnownInvalidQueryErr(err error) error {
4747 case pgerrcode .CaseNotFound :
4848 return errors .Join (ErrNotFound , e )
4949 case pgerrcode .InvalidTextRepresentation :
50- if strings .Contains (e .Message , "invalid input syntax for type uuid" ) {
50+ if strings .Contains (e .Message , ErrTextUUIDInvalid ) {
5151 return errors .Join (ErrUUIDInvalid , e )
5252 }
5353 return errors .Join (ErrEnumValueInvalid , e )
@@ -102,7 +102,7 @@ const (
102102 ErrTextConflict = "resource unique field violation"
103103 ErrTextRelationInvalid = "resource relation invalid"
104104 ErrTextEnumValueInvalid = "enum value invalid"
105- ErrTextUUIDInvalid = "value not a valid uuid"
105+ ErrTextUUIDInvalid = "invalid input syntax for type uuid"
106106 ErrTextRestrictViolation = "intended action would violate a restriction"
107107 ErrTextFqnMissingValue = "FQN must specify a valid value and be of format 'https://<namespace>/attr/<attribute name>/value/<value>'"
108108)
You can’t perform that action at this time.
0 commit comments