Selaa lähdekoodia

提示实际错误

章政 8 vuotta sitten
vanhempi
commit
317770b723
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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());
             LogManager.DoLog(sb.ToString());