version 0.7.1, added better error checking for non-existent C source
This commit is contained in:
parent
e1d2372e07
commit
de3871001f
|
@ -557,7 +557,7 @@ e.g: show-method hello_method
|
||||||
# Try to find source for C methods using MethodInfo (if possible)
|
# Try to find source for C methods using MethodInfo (if possible)
|
||||||
if Pry.has_pry_doc && meth.source_location.nil?
|
if Pry.has_pry_doc && meth.source_location.nil?
|
||||||
info = Pry::MethodInfo.info_for(meth)
|
info = Pry::MethodInfo.info_for(meth)
|
||||||
if !info
|
if !info || !info.source
|
||||||
output.puts "Cannot find source for C method: #{meth_name}"
|
output.puts "Cannot find source for C method: #{meth_name}"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
class Pry
|
class Pry
|
||||||
VERSION = "0.7.0"
|
VERSION = "0.7.1"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue