diff options
author | deva <deva> | 2008-05-23 14:55:39 +0000 |
---|---|---|
committer | deva <deva> | 2008-05-23 14:55:39 +0000 |
commit | 158915fafe286df69a68374032187ae283eb4ded (patch) | |
tree | 2f5b593ed9413039bb2b3b0828cb59cb226a39ba /server/src/configuration.cc | |
parent | 5dac0856cb400a4f40280e7caae188781dac7b85 (diff) |
Did a lot of work on the database class.
Diffstat (limited to 'server/src/configuration.cc')
-rw-r--r-- | server/src/configuration.cc | 6 |
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()); } } |