Skip to content

Commit 3a525c1

Browse files
committed
Add expected return value to error message
1 parent 53a890a commit 3a525c1

File tree

1 file changed

+3
-3
lines changed
  • dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils

1 file changed

+3
-3
lines changed

dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/PullRequests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ protected boolean isRenovateEnabled(List<String> filePaths, GitHubContentToProce
6565
//If the file has the key 'enabled' set to false, it indicates that while the repo has been onboarded to renovate, it has been disabled for some reason
6666
return readJsonFromContent(fork.getParent().getFileContent(filePath)).optBoolean("enabled", true);
6767
} catch (FileNotFoundException e) {
68-
log.debug("The file with name {} not found in the repository. Exception: {}", filePath, e.getMessage());
68+
log.debug("The file with name {} not found in the repository.Returning false. Exception: {}", filePath, e.getMessage());
6969
} catch (IOException e) {
70-
log.debug("Exception while trying to close a resource. Exception: {}", e.getMessage());
70+
log.debug("Exception while trying to close a resource. Returning false. Exception: {}", e.getMessage());
7171
} catch (JSONException e) {
72-
log.debug("Exception while trying to read the renovate configuration file. Exception: {}", e.getMessage());
72+
log.debug("Exception while trying to read the renovate configuration file. Returning false. Exception: {}", e.getMessage());
7373
}
7474
}
7575
return false;

0 commit comments

Comments
 (0)