File tree Expand file tree Collapse file tree
document-store/src/main/java/org/hypertrace/core/documentstore/mongo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -560,17 +560,17 @@ public Optional<Document> update(
560560 throws IOException {
561561 try {
562562 return updateExecutor .update (query , updates , updateOptions );
563- } catch (final MongoCommandException | MongoWriteException e1 ) {
564- if (e1 .getCode () == MONGODB_DUPLICATE_KEY_ERROR_CODE ) {
563+ } catch (final MongoCommandException | MongoWriteException e ) {
564+ if (e .getCode () == MONGODB_DUPLICATE_KEY_ERROR_CODE ) {
565565 throw new DuplicateDocumentException ();
566566 }
567567 LOGGER .error (
568568 "Exception updating document(s). query: {} updates:{} options:{}" ,
569569 query ,
570570 updates ,
571571 updateOptions ,
572- e1 );
573- throw new IOException (e1 );
572+ e );
573+ throw new IOException (e );
574574 } catch (final Exception e ) {
575575 LOGGER .error (
576576 "Exception updating document(s). query: {} updates:{} options:{}" ,
You can’t perform that action at this time.
0 commit comments