Skip to content

Commit

Permalink
#444 Motivation:
Browse files Browse the repository at this point in the history
Enhance notification

Modifications:
Throw exception if update item is not existed
  • Loading branch information
lzw2006 committed Jun 27, 2018
1 parent c8212eb commit ed708bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public Integer createConfig(SystemConfig systemConfig) throws SaturnJobConsoleEx
}

@Override
public Integer updateConfig(SystemConfig systemConfig) {
public Integer updateConfig(SystemConfig systemConfig) throws SaturnJobConsoleException {
List<String> properties = new ArrayList<>();
properties.add(systemConfig.getProperty());
List<SystemConfig> systemConfigs = systemConfig4SqlService.selectByPropertiesAndLastly(properties);
Expand All @@ -219,7 +219,7 @@ public Integer updateConfig(SystemConfig systemConfig) {
return result;
}
}
return 0;
throw new SaturnJobConsoleException("systemConfig not existed, update fail");
}

@Override
Expand Down

0 comments on commit ed708bd

Please sign in to comment.