[PATCH weston] desktop-shell: better error logging
Philipp Brüschweiler
blei42 at gmail.com
Sat Apr 13 00:45:56 PDT 2013
---
clients/desktop-shell.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index 41e7daa..ce2366d 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@@ -524,8 +524,10 @@ load_icon_or_fallback(const char *icon)
if (cairo_surface_status(surface) == CAIRO_STATUS_SUCCESS)
return surface;
+ fprintf(stderr, "ERROR loading icon from file '%s', error: '%s'\n",
+ icon,
+ cairo_status_to_string(cairo_surface_status(surface)));
cairo_surface_destroy(surface);
- fprintf(stderr, "ERROR loading icon from file '%s'\n", icon);
/* draw fallback icon */
surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
--
1.8.2.1
More information about the wayland-devel
mailing list