From 8cc04507967e93a582721adf19c8adc72fd4d92f Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 6 Oct 2008 11:00:50 +0000 Subject: [PATCH] better error messages, when possible git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/animate.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gtk/animate.cpp b/src/gtk/animate.cpp index 67dd5aac99..c6f7abe951 100644 --- a/src/gtk/animate.cpp +++ b/src/gtk/animate.cpp @@ -118,7 +118,8 @@ bool wxAnimation::Load(wxInputStream &stream, wxAnimationType type) if (!loader) { - wxLogDebug(wxT("Could not create the loader for '%s' animation type"), anim_type); + wxLogDebug(wxT("Could not create the loader for '%s' animation type: %s"), + anim_type, error->message); return false; } @@ -135,7 +136,7 @@ bool wxAnimation::Load(wxInputStream &stream, wxAnimationType type) if (!gdk_pixbuf_loader_write(loader, buf, stream.LastRead(), &error)) { gdk_pixbuf_loader_close(loader, &error); - wxLogDebug(wxT("Could not write to the loader")); + wxLogDebug(wxT("Could not write to the loader: %s"), error->message); return false; } } @@ -143,7 +144,7 @@ bool wxAnimation::Load(wxInputStream &stream, wxAnimationType type) // load complete if (!gdk_pixbuf_loader_close(loader, &error)) { - wxLogDebug(wxT("Could not close the loader")); + wxLogDebug(wxT("Could not close the loader: %s"), error->message); return false; } -- 2.45.2