[gnome-epub-thumbnailer] epub: Set an error when the cover can't be found
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-epub-thumbnailer] epub: Set an error when the cover can't be found
- Date: Sun, 1 Sep 2013 15:39:00 +0000 (UTC)
commit 68841e9a7658b6bafd4d94f4199ea047d303f1d3
Author: Bastien Nocera <hadess hadess net>
Date: Sun Sep 1 17:26:13 2013 +0200
epub: Set an error when the cover can't be found
This stops a crash in the thumbnailer if the cover cannot
be found.
gnome-epub-thumbnailer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-epub-thumbnailer.c b/gnome-epub-thumbnailer.c
index e2a3615..1cb8149 100644
--- a/gnome-epub-thumbnailer.c
+++ b/gnome-epub-thumbnailer.c
@@ -283,7 +283,7 @@ file_to_data (const char *path,
}
if (cover_data == NULL) {
- g_warning ("Could not find cover file in '%s'", path);
+ g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, "Could not find cover file");
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]