diff options
Diffstat (limited to 'fiv-thumbnail.c')
-rw-r--r-- | fiv-thumbnail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fiv-thumbnail.c b/fiv-thumbnail.c index 60df749..076a917 100644 --- a/fiv-thumbnail.c +++ b/fiv-thumbnail.c @@ -223,9 +223,12 @@ fiv_thumbnail_produce(GFile *target, FivThumbnailSize max_size, GError **error) max_size <= FIV_THUMBNAIL_SIZE_MAX, FALSE); // Local files only, at least for now. + // TODO(p): Support thumbnailing the trash scheme. const gchar *path = g_file_peek_path(target); - if (!path) + if (!path) { + set_error(error, "only local files are supported"); return FALSE; + } GMappedFile *mf = g_mapped_file_new(path, FALSE, error); if (!mf) |