diff options
author | Vincent Untz <vuntz@gnome.org> | 2010-02-17 02:29:06 +0100 |
---|---|---|
committer | Vincent Untz <vuntz@gnome.org> | 2010-03-10 03:29:51 +0100 |
commit | 843e5f4cd8680f57add251c745d19ba2db38d05e (patch) | |
tree | d82ef5febb150e478aaf142ebf68f30da2b11199 /src/update-desktop-database.c | |
parent | fdb63c3d0416d8d54747f14f66b635ebf241a852 (diff) | |
download | desktop-file-utils-843e5f4cd8680f57add251c745d19ba2db38d05e.tar.gz |
Improve error messages
Loosely based on patch from Erik Hovland <erik@hovland.org>
https://bugs.freedesktop.org/show_bug.cgi?id=20039
Diffstat (limited to 'src/update-desktop-database.c')
-rw-r--r-- | src/update-desktop-database.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/update-desktop-database.c b/src/update-desktop-database.c index 6353c28..300c0bb 100644 --- a/src/update-desktop-database.c +++ b/src/update-desktop-database.c @@ -461,8 +461,7 @@ main (int argc, if (error != NULL) { - udd_verbose_print (_("Could not create cache file in directory '%s':" - "\n\t%s\n"), + udd_verbose_print (_("Could not create cache file in '%s': %s\n"), desktop_dirs[i], error->message); g_error_free (error); error = NULL; @@ -474,8 +473,13 @@ main (int argc, if (!found_processable_dir) { - udd_print (_("No directories in update-desktop-database search path " - "could be processed and updated.\n")); + char *directories; + + directories = g_strjoinv (":", (char **) desktop_dirs); + udd_print (_("The databases in %s could not be updated.\n"), directories); + + g_free (directories); + return 1; } |