summaryrefslogtreecommitdiff
path: root/gsystem-file-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gsystem-file-utils.c')
-rw-r--r--gsystem-file-utils.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gsystem-file-utils.c b/gsystem-file-utils.c
index babae9d..f70239c 100644
--- a/gsystem-file-utils.c
+++ b/gsystem-file-utils.c
@@ -118,7 +118,14 @@ gs_file_read_noatime (GFile *file,
path = gs_file_get_path_cached (file);
if (path == NULL)
- return NULL;
+ {
+ char *uri;
+ uri = g_file_get_uri (file);
+ g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_NOENT,
+ "%s has no associated path", uri);
+ g_free (uri);
+ return NULL;
+ }
fd = _open_fd_noatime (path);
if (fd < 0)