配置错误返回修改

This commit is contained in:
huguanghan 2024-12-17 16:11:07 +08:00
parent c6c63327e6
commit f0cd49362b
2 changed files with 4 additions and 2 deletions

View File

@ -192,7 +192,7 @@ public class FaultRecorderServiceImpl implements FaultRecorderService {
} catch (Exception e) { } catch (Exception e) {
log.error("文件解析异常:{}",e); log.error("文件解析异常:{}",e);
throw new ServiceException("配置解析异常"); throw new ServiceException("文件解析异常,请检查配置");
} }
return resultMap; return resultMap;
} }
@ -231,6 +231,7 @@ public class FaultRecorderServiceImpl implements FaultRecorderService {
stringListMap = parseDataCurve(result, timeFormat); stringListMap = parseDataCurve(result, timeFormat);
} catch (Exception e) { } catch (Exception e) {
log.error("文件解析失败{}", e); log.error("文件解析失败{}", e);
throw new ServiceException("文件解析失败");
} }
return stringListMap; return stringListMap;
} }

View File

@ -87,7 +87,7 @@ public class PlcLogsServiceImpl implements PlcLogService {
} catch (Exception e) { } catch (Exception e) {
log.error("文件解析异常:{}",e); log.error("文件解析异常:{}",e);
throw new ServiceException("配置解析异常"); throw new ServiceException("文件解析异常,请检查配置");
} }
return resultMap; return resultMap;
} }
@ -163,6 +163,7 @@ public class PlcLogsServiceImpl implements PlcLogService {
stringListMap = parseDataCurve(result, timeFormat); stringListMap = parseDataCurve(result, timeFormat);
} catch (Exception e) { } catch (Exception e) {
log.error("文件解析失败{}", e); log.error("文件解析失败{}", e);
throw new ServiceException("文件解析失败");
} }
return stringListMap; return stringListMap;
} }