From a350f122f6fd2411ec2414f750a1f043d3035b53 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 9 Oct 2023 13:57:01 +0800 Subject: [PATCH] =?UTF-8?q?wms=EF=BC=8C=E4=BB=BB=E5=8A=A1=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs index dfaa1117..0b81f967 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs @@ -497,8 +497,9 @@ namespace Tnb.WarehouseMgr await _db.Ado.CommitTranAsync(); } - catch (Exception) + catch (Exception ex) { + Log.Error("任务执行失败", ex); await _db.Ado.RollbackTranAsync(); throw; } @@ -532,8 +533,9 @@ namespace Tnb.WarehouseMgr await _db.Ado.CommitTranAsync(); } - catch (Exception) + catch (Exception ex) { + Log.Error("设备取返回操作失败", ex); await _db.Ado.RollbackTranAsync(); } }