[Libguestfs] [PATCH 31/61] p2v: main - cli error reporting hook from gui

Maros Zatko mzatko at redhat.com
Wed Feb 12 14:30:43 UTC 2014


---
 p2v/client/lib/virt-p2v/ui/main.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/p2v/client/lib/virt-p2v/ui/main.rb b/p2v/client/lib/virt-p2v/ui/main.rb
index 67dd1b1..b91225c 100644
--- a/p2v/client/lib/virt-p2v/ui/main.rb
+++ b/p2v/client/lib/virt-p2v/ui/main.rb
@@ -291,6 +291,9 @@ class NewMain < Main
         @text = str
 #        p "called text= #{str} on #{@name}"
       end
+      n.eigen.send(:define_method, :"secondary_icon_tooltip_text=") do |str|
+        puts "Error in '#{@name}': '#{str}'"
+      end
       n
     else
       NeverMind.new self, name
-- 
1.8.3.1




More information about the Libguestfs mailing list