Skip to content
Snippets Groups Projects
Commit 89bb4f35 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Improve output from die_strerror().

parent ee4a219e
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,10 @@ void __attribute__((noreturn)) die_perror(char *message)
void __attribute__((noreturn)) die_strerror(char *message, int err)
{
fprintf(stderr, "%s: %s", message, strerror(err));
if ((message != NULL) && (strlen(message) > 0))
fprintf(stderr, "%s: %s\n", message, strerror(err));
else
fprintf(stderr, "%s\n", strerror(err));
run_cleanup_command();
exit(EXIT_FAILURE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment