Skip to content

Commit

Permalink
raise a specific exception when the FileUpdater doesn't produce a cha…
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman authored Jan 12, 2024
1 parent bbf7d96 commit c72838f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ def check_and_create_pull_request(dependency)
updated_dependencies: updated_deps,
change_source: checker.dependency
)

raise DependabotError, "FileUpdater failed" unless dependency_change.updated_dependency_files.any?

create_pull_request(dependency_change)
rescue Dependabot::AllVersionsIgnored
Dependabot.logger.info("All updates for #{dependency.name} were ignored")
Expand Down

0 comments on commit c72838f

Please sign in to comment.