From a27d105dcd1376c1df4ff16e388dfcfa3b355cc6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Aug 2013 09:35:30 +0200 Subject: FatalError: new library to replace mpd_error.h --- src/Log.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Log.cxx') diff --git a/src/Log.cxx b/src/Log.cxx index 96ac106cc..37bff9c78 100644 --- a/src/Log.cxx +++ b/src/Log.cxx @@ -21,6 +21,7 @@ #include "Log.hxx" #include "conf.h" #include "fd_util.h" +#include "FatalError.hxx" #include "mpd_error.h" #include @@ -60,9 +61,9 @@ static void redirect_logs(int fd) { assert(fd >= 0); if (dup2(fd, STDOUT_FILENO) < 0) - MPD_ERROR("problems dup2 stdout : %s\n", strerror(errno)); + FatalSystemError("Failed to dup2 stdout"); if (dup2(fd, STDERR_FILENO) < 0) - MPD_ERROR("problems dup2 stderr : %s\n", strerror(errno)); + FatalSystemError("Failed to dup2 stderr"); } static const char *log_date(void) -- cgit v1.2.3