Browse Source

提示实际错误

章政 8 years ago
parent
commit
317770b723
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UAS-MES/PublicMethod/Print.cs

+ 2 - 2
UAS-MES/PublicMethod/Print.cs

@@ -74,9 +74,9 @@ namespace UAS_MES.PublicMethod
                     //    }
                     //}
                 }
-                catch (System.Exception)
+                catch (System.Exception ex)
                 {
-                    BaseUtil.ShowError("SQL" + sql + "维护不正确");
+                    BaseUtil.ShowError(ex.Message);
                 }
             }
             LogManager.DoLog(sb.ToString());