diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-04-10 09:09:03 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-04-10 09:09:03 +0200 |
commit | 20544fb077beae2ec25eadf73292f091207f1ad2 (patch) | |
tree | 993f532f1ddd9ae0835d1cee526f4db7ed3d2964 /src/DabMod.cpp | |
parent | accdfad612a368542f2d833d0e3d30dc9541b955 (diff) | |
download | dabmod-20544fb077beae2ec25eadf73292f091207f1ad2.tar.gz dabmod-20544fb077beae2ec25eadf73292f091207f1ad2.tar.bz2 dabmod-20544fb077beae2ec25eadf73292f091207f1ad2.zip |
Add detail when config file parser fails
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r-- | src/DabMod.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 83802ab..75e76e0 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -351,7 +351,8 @@ int main(int argc, char* argv[]) } catch (boost::property_tree::ini_parser::ini_parser_error &e) { - fprintf(stderr, "Error, cannot read configuration file '%s'\n", configuration_file.c_str()); + std::cerr << "Error, cannot read configuration file '" << configuration_file.c_str() << "'" << std::endl; + std::cerr << " " << e.what() << std::endl; throw std::runtime_error("Cannot read configuration file"); } |