Open samlotti opened 6 years ago
error is nill on result of save when 409 returned from arangodb
Case needed in func (col *Collection) Save(doc interface{}) error { ... case 409: return errors.New( "unique constraint violated" )
To reproduce, add a unique index on a collection. Call to add a document multiple times, the error is returned by Arango but not by the save function.
I believe this should be added to other functions as well.
@samlotti , will fix it. Which version of arangodb are you using?
@diegogub ArangoDB 3.3.17
error is nill on result of save when 409 returned from arangodb
Case needed in func (col *Collection) Save(doc interface{}) error { ... case 409: return errors.New( "unique constraint violated" )
To reproduce, add a unique index on a collection. Call to add a document multiple times, the error is returned by Arango but not by the save function.
I believe this should be added to other functions as well.