Author: jmb
Date: Mon Oct 12 12:38:22 2009
New Revision: 9629
URL:
http://source.netsurf-browser.org?rev=9629&view=rev
Log:
Log failures
Modified:
trunk/netsurf/css/select.c
Modified: trunk/netsurf/css/select.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/css/select.c?rev=9629&...
==============================================================================
--- trunk/netsurf/css/select.c (original)
+++ trunk/netsurf/css/select.c Mon Oct 12 12:38:22 2009
@@ -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 @@
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;
}