ソースを参照

jfinal 5.0.5 release ^_^

James 3 年 前
コミット
da160bb828
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/main/java/com/jfinal/plugin/activerecord/tx/Tx.java

+ 1 - 1
src/main/java/com/jfinal/plugin/activerecord/tx/Tx.java

@@ -109,7 +109,7 @@ public class Tx implements Interceptor {
 			if (conn != null) try {conn.rollback();} catch (Exception e1) {LogKit.error(e1.getMessage(), e1);}
 
 			// 支持在 controller 中 try catch 的 catch 块中使用 render(...) 并 throw e,实现灵活控制 render
-			if (inv.isActionInvocation() && inv.getController().getRender() != null && txFun == null) {
+			if (txFun == null && inv.isActionInvocation() && inv.getController().getRender() != null) {
 				LogKit.error(t.getMessage(), t);
 			} else {
 				throw t instanceof RuntimeException ? (RuntimeException)t : new ActiveRecordException(t);