pry/pry · error
#{path}:#{lineno}: warning: #{message}
Error message
#{path}:#{lineno}: warning: #{message} What it means
Error "#{path}:#{lineno}: warning: #{message}" thrown in pry/pry.
Source
Thrown at lib/pry/warning.rb:17
# frozen_string_literal: true
class Pry
# @api private
# @since v0.13.0
module Warning
# Prints a warning message with exact file and line location, similar to how
# Ruby's -W prints warnings.
#
# @param [String] message
# @return [void]
def self.warn(message)
location = caller_locations(2..2).first
path = location.path
lineno = location.lineno
Kernel.warn("#{path}:#{lineno}: warning: #{message}")
end
end
end
View on GitHub (pinned to 1356402628)
When it happens
Trigger: Thrown at lib/pry/warning.rb:17 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pry/pry@1356402628 (2026-08-21).
Data as JSON: /api/errors/177a95d7de989667.
Report an issue: GitHub.