lib/gdbdump/procfs.rb in gdbdump-0.1.0 vs lib/gdbdump/procfs.rb in gdbdump-0.9.0

- old
+ new

@@ -6,12 +6,12 @@ @pid = pid end def exe begin - File.readlink("/proc/#{@pid}/exe") + @exe ||= File.readlink("/proc/#{@pid}/exe") rescue Errno::ENOENT - raise "/proc/#{@pid}/exe does not exist, it seems pid #{@pid} does not exit" + raise "/proc/#{@pid}/exe does not exist, it seems no process of pid #{@pid} exists" end end end end