summaryrefslogtreecommitdiff
path: root/lib/pry/pry_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/pry_class.rb')
-rw-r--r--lib/pry/pry_class.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb
index 2a1bae76..1609f376 100644
--- a/lib/pry/pry_class.rb
+++ b/lib/pry/pry_class.rb
@@ -161,6 +161,9 @@ you can add "Pry.config.windows_console_warning = false" to your .pryrc.
# Pry.start(Object.new, :input => MyInput.new)
def self.start(target=nil, options={})
return if ENV['DISABLE_PRY']
+ if ENV['FAIL_PRY']
+ raise 'You have FAIL_PRY set to true, which results in Pry calls failing'
+ end
options = options.to_hash
if in_critical_section?