diff options
author | Ondrej Holy <oholy@redhat.com> | 2023-03-02 13:30:19 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2023-03-04 19:48:37 +0000 |
commit | db461c6866105701a17906ffe678a66d655e43a8 (patch) | |
tree | 027e9cf15cc8a3c3f3c091925e70640a4aafc4b7 /src/nautilus-file-operations.c | |
parent | 4f0fee34f454b46bbb7fa7ffccf9e7165a12dd0b (diff) | |
download | nautilus-db461c6866105701a17906ffe678a66d655e43a8.tar.gz |
file-operations: Exchange error messages used when deleting
There are two error messages that may be shown when the delete operation
fails. One message is generic and the another one mentions insuffient
permissions. However, the generic one is now shown in the case of the
`G_IO_ERROR_PERMISSION_DENIED` error. Let's exchange the messages to
use the second one in this case.
Diffstat (limited to 'src/nautilus-file-operations.c')
-rw-r--r-- | src/nautilus-file-operations.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c index f3391571b..cce3b2548 100644 --- a/src/nautilus-file-operations.c +++ b/src/nautilus-file-operations.c @@ -2064,21 +2064,21 @@ file_deleted_callback (GFile *file, if (file_type == G_FILE_TYPE_DIRECTORY) { secondary = IS_IO_ERROR (error, PERMISSION_DENIED) ? - g_strdup_printf (_("There was an error deleting the " - "folder “%s”."), - basename) : g_strdup_printf (_("You do not have sufficient permissions " "to delete the folder “%s”."), + basename) : + g_strdup_printf (_("There was an error deleting the " + "folder “%s”."), basename); } else { secondary = IS_IO_ERROR (error, PERMISSION_DENIED) ? - g_strdup_printf (_("There was an error deleting the " - "file “%s”."), - basename) : g_strdup_printf (_("You do not have sufficient permissions " "to delete the file “%s”."), + basename) : + g_strdup_printf (_("There was an error deleting the " + "file “%s”."), basename); } |