diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-04-13 06:59:21 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-04-13 06:59:21 -0400 |
commit | 9223be6cee993023d985cd6c675e67930806b840 (patch) | |
tree | ead2cfeed3ebebce9b1127a20835fac6d6621ff3 /app | |
parent | 3c92368674ee2deda9d572cdddc897c9a6e94580 (diff) | |
download | xdg-app-9223be6cee993023d985cd6c675e67930806b840.tar.gz |
Improve an error message
If we don't find the file for --gpg-import in the remote-add
command, say so and mention the file name.
Diffstat (limited to 'app')
-rw-r--r-- | app/xdg-app-builtins-add-remote.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/xdg-app-builtins-add-remote.c b/app/xdg-app-builtins-add-remote.c index 451efb7..2b53c0d 100644 --- a/app/xdg-app-builtins-add-remote.c +++ b/app/xdg-app-builtins-add-remote.c @@ -97,7 +97,10 @@ open_source_stream (GInputStream **out_source_stream, input_stream = G_INPUT_STREAM(g_file_read (file, cancellable, error)); if (input_stream == NULL) - return FALSE; + { + g_prefix_error (error, "The file %s specified for --gpg-import was not found: ", opt_gpg_import[ii]); + return FALSE; + } } /* Takes ownership. */ |