aboutsummaryrefslogtreecommitdiff
path: root/src/xzdec
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-08-13 12:42:36 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-08-13 12:42:36 +0300
commita4165d0584376d948c213ec93c6065d24ff6a5e7 (patch)
treebd1a87c3d044f166f634781e166dc981f4449894 /src/xzdec
parentAdd xz man page to manfiles in toplevel Makefile.am. (diff)
downloadxz-a4165d0584376d948c213ec93c6065d24ff6a5e7.tar.xz
Sync some error messages from xz to xzdec.
Make xz error message translation usable outside xz (at least in upcoming lzmainfo).
Diffstat (limited to 'src/xzdec')
-rw-r--r--src/xzdec/xzdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xzdec/xzdec.c b/src/xzdec/xzdec.c
index 4827fc60..e99934f5 100644
--- a/src/xzdec/xzdec.c
+++ b/src/xzdec/xzdec.c
@@ -76,7 +76,7 @@ my_exit(void)
// If it was fclose() that failed, we have the reason
// in errno. If only ferror() indicated an error,
// we have no idea what the reason was.
- my_errorf("Cannot write to standard output: %s", fclose_err
+ my_errorf("Writing to standard output failed: %s", fclose_err
? strerror(errno) : "Unknown error");
status = EXIT_FAILURE;
}
@@ -320,7 +320,7 @@ uncompress(lzma_stream *strm, FILE *file, const char *filename)
// FIXME: Maybe also LZMA_MEMLIMIT_ERROR in future?
if (ret != LZMA_OK) {
my_errorf("%s", ret == LZMA_MEM_ERROR ? strerror(ENOMEM)
- : "Internal program error (bug)");
+ : "Internal error (bug)");
exit(EXIT_FAILURE);
}
@@ -427,7 +427,7 @@ uncompress(lzma_stream *strm, FILE *file, const char *filename)
break;
default:
- msg = "Internal program error (bug)";
+ msg = "Internal error (bug)";
break;
}