Skip to content
Browse files

version 0.7.1, added better error checking for non-existent C source

  • Loading branch information...
1 parent e1d2372 commit de3871001f17d8713f793ece5d55dd40b16c7661 @banister committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/pry/commands.rb
  2. +1 −1 lib/pry/version.rb
View
2 lib/pry/commands.rb
@@ -557,7 +557,7 @@ class Commands < CommandBase
# Try to find source for C methods using MethodInfo (if possible)
if Pry.has_pry_doc && meth.source_location.nil?
info = Pry::MethodInfo.info_for(meth)
- if !info
+ if !info || !info.source
output.puts "Cannot find source for C method: #{meth_name}"
next
end
View
2 lib/pry/version.rb
@@ -1,3 +1,3 @@
class Pry
- VERSION = "0.7.0"
+ VERSION = "0.7.1"
end

0 comments on commit de38710

Please sign in to comment.
Something went wrong with that request. Please try again.