Clarify messages of get/set ext2 attributes errors.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-09-28 17:57:20 +03:00
parent 5f5e71b7f8
commit cbb3c9a372
2 changed files with 11 additions and 7 deletions

View File

@ -1233,7 +1233,7 @@ chattr_cmd (WPanel *panel)
if (mc_fgetflags (vpath, &flags) != 0)
{
message (D_ERROR, MSG_ERROR, _("Cannot get flags of \"%s\"\n%s"), fname->str,
message (D_ERROR, MSG_ERROR, _("Cannot get ext2 attributes of \"%s\"\n%s"), fname->str,
unix_error_string (errno));
vfs_path_free (vpath, TRUE);
break;

View File

@ -2340,7 +2340,8 @@ copy_file_file (file_op_total_context_t *tctx, file_op_context_t *ctx,
else
{
return_status =
file_error (TRUE, _("Cannot get attributes of source file \"%s\"\n%s"), src_path);
file_error (TRUE, _("Cannot get ext2 attributes of source file \"%s\"\n%s"),
src_path);
if (return_status == FILE_SKIPALL)
ctx->skip_all = TRUE;
if (return_status == FILE_ABORT)
@ -2411,7 +2412,8 @@ copy_file_file (file_op_total_context_t *tctx, file_op_context_t *ctx,
ctx->skip_all = TRUE;
else
return_status =
file_error (TRUE, _("Cannot set attributes of target file \"%s\"\n%s"),
file_error (TRUE,
_("Cannot set ext2 attributes of target file \"%s\"\n%s"),
dst_path);
if (return_status != FILE_RETRY)
@ -2485,7 +2487,7 @@ copy_file_file (file_op_total_context_t *tctx, file_op_context_t *ctx,
break;
temp_status =
file_error (TRUE, _("Cannot set attributes of target file \"%s\"\n%s"),
file_error (TRUE, _("Cannot set ext2 attributes of target file \"%s\"\n%s"),
dst_path);
if (temp_status == FILE_SKIP)
break;
@ -2909,8 +2911,9 @@ copy_file_file (file_op_total_context_t *tctx, file_op_context_t *ctx,
break;
}
temp_status = file_error (TRUE, _("Cannot set attributes for target file \"%s\"\n%s"),
dst_path);
temp_status =
file_error (TRUE, _("Cannot set ext2 attributes for target file \"%s\"\n%s"),
dst_path);
if (temp_status == FILE_ABORT)
return_status = FILE_ABORT;
if (temp_status == FILE_RETRY)
@ -2997,7 +3000,8 @@ copy_dir_dir (file_op_total_context_t *tctx, file_op_context_t *ctx, const char
else
{
return_status =
file_error (TRUE, _("Cannot get attributes of source directory \"%s\"\n%s"), s);
file_error (TRUE, _("Cannot get ext2 attributes of source directory \"%s\"\n%s"),
s);
if (return_status == FILE_RETRY)
{
attrs_ok = TRUE;