Skip to content

Commit f6dca2d

Browse files
improve clarity of fwrite errors (#6792)
1 parent f9c2824 commit f6dca2d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

po/data.table.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,12 +2692,12 @@ msgstr ""
26922692

26932693
#: fwrite.c:909
26942694
#, c-format
2695-
msgid "Can't write gzip header error: %d"
2695+
msgid "Failed to write gzip header. Write returned %d"
26962696
msgstr ""
26972697

26982698
#: fwrite.c:910
26992699
#, c-format
2700-
msgid "Compress gzip error: %d"
2700+
msgid "Failed to compress gzip. compressbuff() returned %d"
27012701
msgstr ""
27022702

27032703
#: fwrite.c:911 fwrite.c:928

src/fwrite.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,8 @@ void fwriteMain(fwriteMainArgs args)
906906
#ifndef NOZLIB
907907
free(zbuffPool);
908908
#endif
909-
if (ret0 == -1) STOP(_("Can't write gzip header error: %d"), ret0);
910-
else if (ret1) STOP(_("Compress gzip error: %d"), ret1);
909+
if (ret0 == -1) STOP(_("Failed to write gzip header. Write returned %d"), ret0);
910+
else if (ret1) STOP(_("Failed to compress gzip. compressbuff() returned %d"), ret1);
911911
else STOP(_("%s: '%s'"), strerror(errwrite), args.filename);
912912
// # nocov end
913913
}

0 commit comments

Comments
 (0)