Skip to content

Commit

Permalink
Merge pull request #483 from crowdin/bug/297
Browse files Browse the repository at this point in the history
make lint throw error with no config file
  • Loading branch information
andrii-bodnar authored Oct 6, 2022
2 parents ab78bf7 + 209bd77 commit 46b11ec
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public void populateWithValues(PropertiesWithTargets props, Map<String, Object>

@Override
public void populateWithDefaultValues(PropertiesWithTargets props) {
if (props.getTargets() == null) {
throw new RuntimeException(RESOURCE_BUNDLE.getString("error.configuration_file_not_exist"));
}
for (TargetBean tb : props.getTargets()) {
TargetBean.CONFIGURATOR.populateWithDefaultValues(tb);
}
Expand Down

0 comments on commit 46b11ec

Please sign in to comment.