配置错误返回修改

This commit is contained in:
huguanghan 2024-12-17 15:59:11 +08:00
parent 9e45c11b5d
commit c6c63327e6
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ public class FaultRecorderServiceImpl implements FaultRecorderService {
resultMap = parseFile(fileStream, fdrFormatVo.getTimeFormat(), fdrFormatVo.getDelimiter(), fdrFormatVo.getValidStartLine());
} catch (Exception e) {
e.printStackTrace();
log.error("文件解析异常:{}",e);
throw new ServiceException("配置解析异常");
}
return resultMap;

View File

@ -86,7 +86,7 @@ public class PlcLogsServiceImpl implements PlcLogService {
resultMap = parseFile(fileStream, fdrFormatVo.getTimeFormat(), fdrFormatVo.getDelimiter(), fdrFormatVo.getValidStartLine());
} catch (Exception e) {
e.printStackTrace();
log.error("文件解析异常:{}",e);
throw new ServiceException("配置解析异常");
}
return resultMap;