summaryrefslogtreecommitdiff
path: root/server/src/configuration.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/configuration.cc')
-rw-r--r--server/src/configuration.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/configuration.cc b/server/src/configuration.cc
index 3b59c93..3f8e9d6 100644
--- a/server/src/configuration.cc
+++ b/server/src/configuration.cc
@@ -28,8 +28,6 @@
#include "debug.h"
-#include "tostring.h"
-
Configuration::Configuration(std::string filename)
{
this->filename = filename;
@@ -45,8 +43,10 @@ void Configuration::reload()
} catch(libconfig::FileIOException) {
throw ConfigurationException("Could not read config file: File does not exist.");
} catch(libconfig::ParseException &e) {
+ char lineno[32];
+ sprintf(lineno, "%d", e.getLine());
throw ConfigurationException(std::string("Error when parsing the config file in line ")
- + toString(e.getLine()) + ": " + e.getError());
+ + lineno + ": " + e.getError());
}
}