Skip to content

Commit ec41e61

Browse files
authored
Merge pull request #425 from mrxz/patch-1
Fix exception message for transaction type NEVER
2 parents dc3f01d + 1a01645 commit ec41e61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/googlecode/objectify/impl/TransactorYes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public <R> R execute(final ObjectifyImpl parent, final TxnType txnType, final Wo
5959
return transactionless(parent, work);
6060

6161
case NEVER:
62-
throw new IllegalStateException("MANDATORY transaction but no transaction present");
62+
throw new IllegalStateException("NEVER transaction type but transaction present");
6363

6464
case REQUIRES_NEW:
6565
return transactNew(parent, Transactor.DEFAULT_TRY_LIMIT, work);
@@ -108,4 +108,4 @@ public void committed() {
108108
public AsyncDatastoreReaderWriter asyncDatastore(final ObjectifyImpl ofy) {
109109
return this.transaction;
110110
}
111-
}
111+
}

0 commit comments

Comments
 (0)