Explorar o código

fix: 修复输出没有错误信息的问题

191250028 %!s(int64=3) %!d(string=hai) anos
pai
achega
799443b270

+ 1 - 1
java_compile/src/main/java/com/example/controller/FileController.java

@@ -38,7 +38,7 @@ public class FileController {
             int rsl = fileService.uploadFile(userId, file, filename);
             return rsl != 0 ? new NormalRes(rsl) : new ErrorRes(40002, "Server error.");
         } catch (Exception e) {
-            log.info("error fileLoader");
+            log.info("error fileLoader"+e.getMessage());
             return new ErrorRes(40002,e.getMessage());
         }
     }

+ 2 - 2
java_compile/src/main/java/com/example/services/FileService.java

@@ -279,7 +279,7 @@ public class FileService {
             }
             return null;
         } catch (Exception e) {
-            log.error("file analysis error");
+            log.error("file analysis error"+e.getMessage());
             throw e;
         }
     }
@@ -302,7 +302,7 @@ public class FileService {
             }
             return null;
         }catch (Exception e) {
-            log.error("file analysis error");
+            log.error("file analysis error"+e.getMessage());
             throw e;
         }
     }