Skip to content

Commit

Permalink
Adds error handler for Ruby version not found class error
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-sandhu committed Jan 21, 2025
1 parent 9451c2e commit c85cbf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/lib/dependabot/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ def self.updater_error_details(error)
"error-type": "git_token_auth_error",
"error-detail": { message: error.message }
}
when Dependabot::Bundler::FileUpdater::RubyRequirementSetter::RubyVersionNotFound
{
"error-type": "ruby_version_not_found",
"error-detail": { message: error.message }
}
when *Octokit::RATE_LIMITED_ERRORS
# If we get a rate-limited error we let dependabot-api handle the
# retry by re-enqueing the update job after the reset
Expand Down

0 comments on commit c85cbf1

Please # to comment.