From 9e742f13da16a534947aca66a60861c2ff0e5fa0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 12 Oct 2009 17:38:22 +0000 Subject: Log failures svn path=/trunk/netsurf/; revision=9629 --- css/select.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/css/select.c b/css/select.c index 7dd4b3af9..d0ccbe4d9 100644 --- a/css/select.c +++ b/css/select.c @@ -27,6 +27,7 @@ #include "css/select.h" #include "css/utils.h" #include "desktop/options.h" +#include "utils/log.h" #include "utils/url.h" #include "utils/utils.h" @@ -139,17 +140,21 @@ css_stylesheet *nscss_create_inline_style(const uint8_t *data, size_t len, error = css_stylesheet_create(CSS_LEVEL_DEFAULT, charset, url, NULL, CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, allow_quirks, true, dict, alloc, pw, nscss_resolve_url, NULL, &sheet); - if (error != CSS_OK) + if (error != CSS_OK) { + LOG(("Failed creating sheet: %d", error)); return NULL; + } error = css_stylesheet_append_data(sheet, data, len); if (error != CSS_OK && error != CSS_NEEDDATA) { + LOG(("failed appending data: %d", error)); css_stylesheet_destroy(sheet); return NULL; } error = css_stylesheet_data_done(sheet); if (error != CSS_OK) { + LOG(("failed completing parse: %d", error)); css_stylesheet_destroy(sheet); return NULL; } -- cgit v1.2.3