// 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.
- message(V_ERROR, _("Writing to standard output "
- "failed: %s"),
+ message(V_ERROR, "%s: %s", _("Writing to standard "
+ "output failed"),
fclose_err ? strerror(errno)
: _("Unknown error"));
status = E_ERROR;
// 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;
}
// 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);
}
break;
default:
- msg = "Internal program error (bug)";
+ msg = "Internal error (bug)";
break;
}