Skip to content

Commit 7ede65c

Browse files
committed
nit
1 parent 3495f57 commit 7ede65c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

document-store/src/main/java/org/hypertrace/core/documentstore/mongo/MongoCollection.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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:{}",

0 commit comments

Comments
 (0)