1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

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

This commit is contained in:
John Mair 2011-03-16 02:50:36 +13:00
parent e1d2372e07
commit de3871001f
2 changed files with 2 additions and 2 deletions

View file

@ -557,7 +557,7 @@ e.g: show-method hello_method
# 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 file

@ -1,3 +1,3 @@
class Pry
VERSION = "0.7.0"
VERSION = "0.7.1"
end