]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephtool-gui : more helpful error on pixbuf fail
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 29 Oct 2010 21:28:00 +0000 (14:28 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 29 Oct 2010 21:36:47 +0000 (14:36 -0700)
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/tools/gui.cc

index 9225dd028d7966974f3052433ff7a34cf03d0929..32da58410e12aa2ac6fa2ab13990746abe1c309f 100644 (file)
@@ -264,8 +264,8 @@ bool GuiMonitor::open_icon(Glib::RefPtr<Gdk::Pixbuf> &icon, const std::string &p
       icon = Gdk::Pixbuf::create_from_file(path);
    }
    catch (const Gdk::PixbufError& e) {
-      cerr << "Problem making graphic from " << path << "; error code: " <<
-       e.code() << std::endl;
+      cerr << "Problem making graphic from " << path << "; error code: "
+          << e.code() << ": " << e.what() << std::endl;
       return false;
    }
    catch (const Glib::FileError& e) {