浏览代码

mxg:上传失败时,错误提示

mengxiangge 5 年之前
父节点
当前提交
ad41d6706c
共有 2 个文件被更改,包括 1 次插入5 次删除
  1. 1 1
      Executer/MBIRevitBase/Services/UploadService.cs
  2. 0 4
      Starter/Starter/Program.cs

+ 1 - 1
Executer/MBIRevitBase/Services/UploadService.cs

@@ -57,7 +57,7 @@ namespace MBIRevitBase.Services
             catch (Exception e)
             catch (Exception e)
             {
             {
                 Log4Net.Debug($"Execute failed,Message:{e.Message}");
                 Log4Net.Debug($"Execute failed,Message:{e.Message}");
-                return e.Message;
+                return "文件上传失败!"+e.Message;
             }
             }
         }
         }
         static void ReportError(Exception e, TimeSpan timeSpan, int intento, Context context)
         static void ReportError(Exception e, TimeSpan timeSpan, int intento, Context context)

+ 0 - 4
Starter/Starter/Program.cs

@@ -98,9 +98,6 @@ namespace ExportStart
         /// <returns></returns>
         /// <returns></returns>
         private static void SaveResult(string param, string result)
         private static void SaveResult(string param, string result)
         {
         {
-            Console.WriteLine(param);
-            Log4Net.Debug(param);
-            Log4Net.Debug(result);
             try
             try
             {
             {
 
 
@@ -109,7 +106,6 @@ namespace ExportStart
                 string path = jObject[key].ToString();
                 string path = jObject[key].ToString();
                 if (path.IsNotNullEmpty())
                 if (path.IsNotNullEmpty())
                 {
                 {
-                    Console.WriteLine(path);
                     var dir = Directory.GetParent(path);
                     var dir = Directory.GetParent(path);
                     if (!dir.Exists)
                     if (!dir.Exists)
                         dir.Create();
                         dir.Create();