{"record":{"id":"fdba55c69f24bd4a","repo":"ruby/rubygems","slug":"expected-cooldown-to-be-a-non-negative-integer","errorCode":null,"errorMessage":"Expected `--cooldown` to be a non-negative integer, got #{value.inspect}","messagePattern":"Expected `--cooldown` to be a non-negative integer, got #(.+?)","errorType":"exception","errorClass":"Bundler::InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/cli/common.rb","lineNumber":8,"sourceCode":"# frozen_string_literal: true\n\nmodule Bundler\n  module CLI::Common\n    def self.validate_cooldown!(value)\n      return if value.nil?\n      return if value.is_a?(Integer) && value >= 0\n      raise InvalidOption, \"Expected `--cooldown` to be a non-negative integer, got #{value.inspect}\"\n    end\n\n    def self.output_post_install_messages(messages)\n      return if Bundler.settings[\"ignore_messages\"]\n      messages.to_a.each do |name, msg|\n        print_post_install_message(name, msg) unless Bundler.settings[\"ignore_messages.#{name}\"]\n      end\n    end\n\n    def self.print_post_install_message(name, msg)\n      Bundler.ui.confirm \"Post-install message from #{name}:\"\n      Bundler.ui.info msg\n    end\n\n    def self.output_cooldown_skipped_summary(definition = Bundler.definition)\n      skipped = definition.cooldown_skipped\n      return if skipped.empty?\n","sourceCodeStart":1,"sourceCodeEnd":26,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli/common.rb#L1-L26","documentation":"Error \"Expected `--cooldown` to be a non-negative integer, got #{value.inspect}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli/common.rb:8 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}