[tracker] tracker-extract: Show where parsing errors happen in EPubs
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Show where parsing errors happen in EPubs
- Date: Fri, 29 Aug 2014 14:21:56 +0000 (UTC)
commit ba23d6eb960c18e2e92bfe808db364be09b4480f
Author: Bastien Nocera <hadess hadess net>
Date: Thu Aug 28 23:46:15 2014 +0200
tracker-extract: Show where parsing errors happen in EPubs
Error extracting EPUB contents (OEBPS/Text/info.xhtml): Error on line 59: Entity name 'copy' is not known
is better than:
Error extracting EPUB contents: Error on line 59: Entity name 'copy' is not known
https://bugzilla.gnome.org/show_bug.cgi?id=735645
src/tracker-extract/tracker-extract-epub.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-epub.c b/src/tracker-extract/tracker-extract-epub.c
index 55a27d8..40d9fdc 100644
--- a/src/tracker-extract/tracker-extract-epub.c
+++ b/src/tracker-extract/tracker-extract-epub.c
@@ -575,13 +575,14 @@ extract_opf_contents (const gchar *uri,
/* Page file is relative to OPF file location */
path = g_build_filename (content_prefix, l->data, NULL);
tracker_gsf_parse_xml_in_zip (uri, path, context, &error);
- g_free (path);
if (error) {
- g_warning ("Error extracting EPUB contents: %s\n",
- error->message);
+ g_warning ("Error extracting EPUB contents (%s): %s\n",
+ path, error->message);
+ g_free (path);
break;
}
+ g_free (path);
if (content_data.limit <= 0) {
/* Reached plain text extraction limit */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]