aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-10 11:14:10 +0200
committerMax Kellermann <max@duempel.org>2013-08-10 11:52:31 +0200
commit25e338a098c66f08a1b6bb166cf06c0f6a2f21a8 (patch)
tree85783e2f73408d1351123aba827f884b7d776e01 /src
parent81175b07174c589f172e67e10196cdc0b9412d59 (diff)
downloadmpd-25e338a098c66f08a1b6bb166cf06c0f6a2f21a8.tar.gz
mpd-25e338a098c66f08a1b6bb166cf06c0f6a2f21a8.tar.xz
mpd-25e338a098c66f08a1b6bb166cf06c0f6a2f21a8.zip
ConfigData: use FatalError() instead of MPD_ERROR()
Diffstat (limited to 'src')
-rw-r--r--src/ConfigData.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ConfigData.cxx b/src/ConfigData.cxx
index 12aa9f69f..eab5f0ed4 100644
--- a/src/ConfigData.cxx
+++ b/src/ConfigData.cxx
@@ -22,6 +22,7 @@
#include "ConfigParser.hxx"
#include "ConfigPath.hxx"
#include "fs/Path.hxx"
+#include "system/FatalError.hxx"
#include "mpd_error.h"
#include <glib.h>
@@ -36,10 +37,10 @@ block_param::GetUnsignedValue() const
char *endptr;
long value2 = strtol(value.c_str(), &endptr, 0);
if (*endptr != 0)
- MPD_ERROR("Not a valid number in line %i", line);
+ FormatFatalError("Not a valid number in line %i", line);
if (value2 < 0)
- MPD_ERROR("Not a positive number in line %i", line);
+ FormatFatalError("Not a positive number in line %i", line);
return (unsigned)value2;
}
@@ -49,9 +50,9 @@ block_param::GetBoolValue() const
{
bool value2;
if (!get_bool(value.c_str(), &value2))
- MPD_ERROR("%s is not a boolean value (yes, true, 1) or "
- "(no, false, 0) on line %i\n",
- name.c_str(), line);
+ FormatFatalError("%s is not a boolean value (yes, true, 1) or "
+ "(no, false, 0) on line %i\n",
+ name.c_str(), line);
return value2;
}